lib/jendle/cli.rb in jendle-0.1.1 vs lib/jendle/cli.rb in jendle-0.1.2
- old
+ new
@@ -76,12 +76,13 @@
end
desc 'restore_jobs', 'restore_jobs'
option :source_profile, type: :string, required: true, desc: 'file'
option :'dry-run', aliases: '-d', type: :boolean, default: false, desc: 'dry-run'
+ option :job_name, aliases: '-j', type: :string, desc: 'job_name'
def restore_jobs
- @job.restore(options, get_config(options[:source_profile]))
+ @job.restore(options, get_config(options[:source_profile]), options[:job_name])
end
desc 'export_views', 'export_views'
option :output, aliases: '-o', type: :string, default: 'Viewfile', desc: 'output'
def export_views
@@ -103,9 +104,14 @@
end
desc 'restart', 'restart'
def restart
@core.restart
+ end
+
+ desc 'delete_jobs', 'delete_jobs'
+ def delete_jobs
+ @job.delete_jobs(options)
end
desc 'version', 'show version'
def version
puts VERSION