lib/shelly/cli/file.rb in shelly-0.3.1 vs lib/shelly/cli/file.rb in shelly-0.3.2

- old
+ new

@@ -13,19 +13,19 @@ desc "list [PATH]", "List files in given path" def list(path = "/") app = multiple_clouds(options[:cloud], "file list #{path}") app.list_files(path) rescue Client::ConflictException - say_error "Cloud #{app} is not running. Cannot list files." + say_error "Cloud #{app} wasn't deployed properly. Cannot list files." end desc "upload PATH", "Upload files to persistent data storage" def upload(path) app = multiple_clouds(options[:cloud], "file upload #{path}") app.upload(path) rescue Client::ConflictException - say_error "Cloud #{app} is not running. Cannot upload files." + say_error "Cloud #{app} wasn't deployed properly. Cannot upload files." end desc "download [SOURCE_PATH] [DEST_PATH]", "Download files from persistent data storage" long_desc %{ Download files from persistent data storage.\n @@ -34,11 +34,11 @@ } def download(relative_source = ".", destination = ".") app = multiple_clouds(options[:cloud], "file download #{relative_source} #{destination}") app.download(relative_source, destination) rescue Client::ConflictException - say_error "Cloud #{app} is not running. Cannot download files." + say_error "Cloud #{app} wasn't deployed properly. Cannot download files." end method_option :force, :type => :boolean, :aliases => "-f", :desc => "Skip confirmation question" desc "delete PATH", "Delete files from persistent data storage" @@ -50,10 +50,10 @@ exit 1 unless yes?(question) end app.delete_file(path) rescue Client::ConflictException - say_error "Cloud #{app} is not running. Cannot delete files." + say_error "Cloud #{app} wasn't deployed properly. Cannot delete files." end no_tasks do def require_rsync unless command_exists?("rsync")