olarivain / artifactory Goto Github PK
View Code? Open in Web Editor NEWchef provider for artifactory packages
chef provider for artifactory packages
I am currently receiving the following during chef-client runs:
Compiling Cookbooks...
cannot load such file -- rest-client
/var/chef/cache/cookbooks/artifactory/libraries/Artifactory.rb:3:in `<top (req uired)>'
/var/chef/cache/cookbooks/artifactory/libraries/Artifactory.rb:
1: require 'rubygems'
2: require "rexml/document"
3>> require 'restclient'
4:
5: module Artifactory
6:
7: class Artifact
8:
9: attr_accessor :group_id, :artifact_id, :version, :classifier, :p ackaging, :repository, :base_url, :resolved_version
10:
11: def self.from_resource(resource)
12: return Artifactory::Artifact.new(resource.group_id, reso urce.artifact_id, resource.version, resource.packaging, resource.repository, res ource.url)
Tried changing the class name, and still no luck, any workarounds or proposed fixactions?
I added 'depends "artifactory"' in my metadata.rb file.
I added the following in the recipe of my cookbook
artifactory "splunkforwarder-6.1.1-207789-linux-2.6-x86_64" do
group_id "splunkforwarder"
version "6.1.1-207789"
packaging "rpm" # defaults to jar
dest "/tmp"
action :put
end
When I run the chef-client it gives NoMethodError
Undefined method 'group_id' for Chef::Resource::Artifactory
'group_id' is an attribute not a method.
How should I resolve this error?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.