Skip to content

Instantly share code, notes, and snippets.

@richo
Created November 13, 2012 05:54
Show Gist options
  • Select an option

  • Save richo/4064215 to your computer and use it in GitHub Desktop.

Select an option

Save richo/4064215 to your computer and use it in GitHub Desktop.
dep "thing" do
met? {
(@f ||= 0) == 1
}
meet {
@f = 1
}
after {
sudo "echo foo"
}
end
@rbone
Copy link

rbone commented Nov 13, 2012

The one above works, this one has the issue:

meta :thingy do
  accepts_value_for :sudo, false
  template {
  }
end
dep "thing" do
  met? {
    (@f ||= 0) == 1
  }
  meet {
    @f = 1
  }
  after {
    sudo "echo foo"
  }
end

@rbone
Copy link

rbone commented Nov 13, 2012

Just reread that, obviously the thing dep should be 'dep "thing", :template=>"thingy" do'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment