lib/shelly/cli/main.rb in shelly-0.1.15 vs lib/shelly/cli/main.rb in shelly-0.1.16
- old
+ new
@@ -200,11 +200,19 @@
say_error "Not starting. Invoice for cloud '#{app}' was declined."
end
exit 1
end
- desc "setup", "Set up clouds"
+ desc "setup", "Set up git remotes for deployment on Shelly Cloud"
+ long_desc %{
+ Set up git remotes for deployment on Shelly Cloud.
+
+ When an application is cloned from a git repository (for example from Github)
+ shelly setup will set up git remotes needed for deployment on Shelly Cloud.
+
+ Application must have Cloudfile in the repository.
+ }
method_option :cloud, :type => :string, :aliases => "-c", :desc => "Specify cloud"
def setup
app = multiple_clouds(options[:cloud], "setup")
say "Setting up #{app} cloud", :green
app.git_url = app.attributes["git_info"]["repository_url"]
@@ -277,12 +285,13 @@
logs = app.application_logs(query)
print_logs(logs)
if options[:tail]
loop do
- logs = app.application_logs(:from => logs['range']['last'], :source => options[:source])
+ logs = app.application_logs(:from => logs['range']['last'],
+ :source => options[:source])
print_logs(logs)
- sleep 1
+ sleep 0.5
end
end
rescue Client::APIException => e
raise e unless e.status_code == 416
say_error "You have requested too many log messages. Try a lower number."