cielo24-cli 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f0e8b544d97bda3bbcc3351c09b853eb0d52bf9a
4
- data.tar.gz: 9a888a18a4a66fbfbd54f6231859a63acc646470
2
+ SHA256:
3
+ metadata.gz: 69db0fb5c6effd84936837d68a5d167d3b63e1a31ead15b1d281c87a97b686f8
4
+ data.tar.gz: 8429330efbce68943239f8b16b4dabaf6c7d02c4d44416b83a1b7ca36a6b44b2
5
5
  SHA512:
6
- metadata.gz: bd83b978be964cb136db9a4f7ad4ca926d8a1f9c86f8f2423ab8de29c83810d6619556a382b9ce1d0749d6a3bb0988e6a456b750c750c0f229fe0ac08588d5c0
7
- data.tar.gz: 3d352e868de0d82a2c44ed6284f288c1be469f72f93834c415f88fa08c5e53a4a6be4c15f3204e6ea0ae015478678873e73eb0b11bb0a8222b7b46eedae81e75
6
+ metadata.gz: b82fc5c542ab84080085c7350de66db95ad5601bfe2ddeba1c28600895b17b0f2ad76c038ac99cc4d0e926e716b4e4662c4049d9e7c8e59bfd95cf7da3869554
7
+ data.tar.gz: 2ee70cab2ae5d487e163e56c01dbbbf691062f64e43fcd3a43d5d3eeae632ea3da7988cdb8d50b125f4effd3178772d9a20209aa38e443b9d0fc4d14188f35ef
@@ -14,7 +14,7 @@ module Cielo24Cli
14
14
  password_option = [:p, :required => false, :desc => 'cielo24 password', :banner => 'password', :hide => true]
15
15
  securekey_option = [:k, :required => false, :desc => 'The API Secure Key', :banner => 'securekey', :hide => true]
16
16
  api_token_option = [:N, :required => false, :desc => 'The API token of the current session', :banner => 'token', :hide => true]
17
- server_url_option =[:s, :required => false, :desc => 'cielo24 server URL [https://api.cielo24.com]', :banner => 'server_url', :hide => true, :default => 'http://api.cielo24.com']
17
+ server_url_option =[:s, :required => false, :desc => 'cielo24 server URL [https://api.cielo24.com]', :banner => 'server_url', :hide => true, :default => 'https://api.cielo24.com']
18
18
  # JOB CONTROL:
19
19
  job_id_option = [:j, :required => true, :desc => 'Job Id', :banner => 'jobid']
20
20
  media_url_option = [:m, :required => false, :desc => 'Media URL', :banner => 'mediaurl']
@@ -139,6 +139,24 @@ module Cielo24Cli
139
139
  puts 'Authorized successfully'
140
140
  end
141
141
 
142
+ desc 'modify_job', 'Modify a job'
143
+ option *job_id_option
144
+ option *fidelity_option
145
+ option *turn_around_hours_option
146
+ option *priority_option
147
+ # always required (hidden)
148
+ option *username_option
149
+ option *password_option
150
+ option *securekey_option
151
+ option *api_token_option
152
+ def modify_job
153
+ puts 'Modifying job parameters...'
154
+ actions = initialize_actions
155
+ token = get_token(actions)
156
+ actions.modify_job(token, options[:j], fidelity=options[:f], turnaround_hours=options[:T], priority=options[:P])
157
+ puts 'Job modified successfully'
158
+ end
159
+
142
160
  desc 'add_media_to_job', 'Add media to job'
143
161
  option *job_id_option
144
162
  option *media_url_option
@@ -1,3 +1,3 @@
1
1
  module Cielo24CLI
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cielo24-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - cielo24
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2019-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.4.6
87
+ rubygems_version: 2.7.8
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Command line interface to cielo24 gem.