Last active
August 29, 2015 14:15
-
-
Save toritori0318/f8238f184a69f3f61f7d to your computer and use it in GitHub Desktop.
itamae define再定義問題
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "./recipe1.rb" | |
include_recipe "./recipe2.rb" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "./resource.rb" | |
echo_hello "foooooo!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "./resource.rb" | |
echo_hello "barrrrrrrr!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define resource echo_hello | |
define :echo_hello, version: nil do | |
execute "echo 'hello!'" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% itamae local entrypoint.rb | |
INFO : Starting Itamae... | |
68 def method_missing(*args, &block) | |
/usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:84:in `const_get': uninitialized constant Hello (NameError) | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:84:in `define' | |
from /Users/toriitsuyoshi/itamae-pj/bug/resource.rb:1:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:58:in `instance_eval' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:58:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:33:in `new' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:33:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:112:in `new' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:112:in `include_recipe' | |
from /Users/toriitsuyoshi/itamae-pj/bug/recipe1.rb:1:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:58:in `instance_eval' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:58:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:33:in `new' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:33:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:112:in `new' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:112:in `include_recipe' | |
from /Users/toriitsuyoshi/itamae-pj/bug/entrypoint.rb:1:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:58:in `instance_eval' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:58:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:33:in `new' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/recipe.rb:33:in `initialize' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/runner.rb:95:in `new' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/runner.rb:95:in `block in load_recipes' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/runner.rb:94:in `each' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/runner.rb:94:in `load_recipes' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/runner.rb:14:in `run' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/lib/itamae/cli.rb:27:in `local' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start' | |
from /usr/local/opt/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/itamae-1.1.5/bin/itamae:4:in `<top (required)>' | |
from /usr/local/opt/rbenv/versions/2.1.3/bin/itamae:23:in `load' | |
from /usr/local/opt/rbenv/versions/2.1.3/bin/itamae:23:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment