lib/capitate/cap_ext/variables.rb in capitate-0.2.13 vs lib/capitate/cap_ext/variables.rb in capitate-0.2.14

- old
+ new

@@ -19,11 +19,11 @@ message = capitate.usage(variable) if message.blank? message = <<-EOS - Please set :#{variable} variable in your Capfile or profile. + Please set :#{variable} variable in your Capfile or deploy.rb EOS end raise IndexError, "\n#{message}" @@ -123,16 +123,9 @@ matched = fetch_roles(name, options) return matched.first if matched nil end - - def link_to_source(recipe_path) - full_path = File.expand_path(recipe_path) - project_path = File.expand_path(File.dirname(__FILE__) + "/../../../") - "http://github.com/gabriel/capitate/tree/master#{full_path.sub(project_path, "")}" - end - end end end \ No newline at end of file