lib/shelly/app.rb in shelly-0.4.0 vs lib/shelly/app.rb in shelly-0.4.1

- old
+ new

@@ -189,10 +189,14 @@ def delete_config(path) shelly.app_delete_config(code_name, path) end + def config_exists?(path) + configs.any? { |config| config["path"] == path } + end + def rake(task) ssh(:command => "rake_runner \"#{task}\"") end def dbconsole @@ -239,9 +243,13 @@ attributes["organization"]["details_present"] end def self.inside_git_repository? system("git status > /dev/null 2>&1") + end + + def turned_off? + state == 'turned_off' end def to_s code_name end