effkay / blazing

painless git push deployments for everyone
MIT License
80 stars 12 forks source link

Do not attempt to load blazing itself when running from git #69

Closed effkay closed 11 years ago

effkay commented 12 years ago

Add blazing with git as source in Gemfile produces something like this:

$ bundle exec blazing update staging
/Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `require': no such file to load -- blazing-269ee17d65d1 (LoadError)
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `block in load_recipes!'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `each'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/recipe.rb:35:in `load_recipes!'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/config.rb:16:in `parse'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/commands.rb:18:in `initialize'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/commands.rb:8:in `new'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/commands.rb:8:in `run'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/lib/blazing/cli.rb:43:in `update'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bundler/gems/blazing-269ee17d65d1/bin/blazing:6:in `<top (required)>'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `load'
    from /Users/pablo/.rvm/gems/ruby-1.9.2-p320@mailee3/bin/blazing:23:in `<main>'

Should be catched by something better than the makeshift rescue LoadError.

effkay commented 11 years ago

recipes are gone from master, so this is obsolete