Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require poise explicitly #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

noahhl
Copy link

@noahhl noahhl commented Jun 9, 2015

With Chef 12.2.1, I was getting repeated errors about Poise being undefined, preventing workbook compilation.

A simple require 'poise' fixed it up.

@spuder
Copy link

spuder commented Feb 24, 2016

+1 Same problem with chef 12.7.2

      NoMethodError
       -------------
       undefined method `Poise' for Chef::Resource::Rundeck:Class

       Cookbook Trace:
       ---------------
         /tmp/kitchen/cache/cookbooks/rundeck/libraries/rundeck.rb:23:in `<class:Rundeck>'
         /tmp/kitchen/cache/cookbooks/rundeck/libraries/rundeck.rb:22:in `<class:Chef>'
         /tmp/kitchen/cache/cookbooks/rundeck/libraries/rundeck.rb:21:in `<top (required)>'

       Relevant File Content:
       ----------------------
       /tmp/kitchen/cache/cookbooks/rundeck/libraries/rundeck.rb:

        16:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        17:  # See the License for the specific language governing permissions and
        18:  # limitations under the License.
        19:  #
        20:
        21:  class Chef
        22:    class Resource::Rundeck < Resource
        23>>     include Poise(container: true)
        24:      actions(:install, :restart, :rebuild_realm, :wait_until_up)
        25:
        26:      attribute(:node_name, kind_of: String, name_attribute: true)
        27:      attribute(:version, kind_of: String, default: lazy { node['rundeck']['version'] })
        28:      attribute(:launcher_url, kind_of: String, default: lazy { node['rundeck']['launcher_url'] })
        29:      attribute(:service_name, kind_of: String, default: 'rundeck')
        30:      # Paths
        31:      attribute(:path, kind_of: String, default: lazy { node['rundeck']['path'] })
        32:      attribute(:config_path, kind_of: String, default: lazy { node['rundeck']['config_path'] })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants