Coder Social home page Coder Social logo

artifactory's Issues

restclient requirement in libraries

I am currently receiving the following during chef-client runs:

Compiling Cookbooks...

Recipe Compile Error in /var/chef/cache/cookbooks/artifactory/libraries/Artifact ory.rb

LoadError

cannot load such file -- rest-client

Cookbook Trace:

/var/chef/cache/cookbooks/artifactory/libraries/Artifactory.rb:3:in `<top (req uired)>'

Relevant File Content:

/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?

NoMethodError -when used it as described in usage

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.