occi-cli 4.2.3 → 4.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a16a411983d56d7c65b82929c86736782afa9095
4
- data.tar.gz: aa72b75779620093adad0a8570f23af6ba29e4f1
3
+ metadata.gz: 98abbaa8d7ca36a46e0b2dd729eb944350dfe71e
4
+ data.tar.gz: 0a3fc8851f9860b36f2236a8f538998cfe3d64ef
5
5
  SHA512:
6
- metadata.gz: fd7b8a10ef380ddf2cce77f925122c4c300a099e89141880fac1825ed4d4570b52e4946378782fd2b5b13f4528411068c32aa5667c788d5f390da287ecba9699
7
- data.tar.gz: 3e2cf4d7c6170ca32ead56492c1d6ce0ab650972a69de2cadb5d48f60c27c523ba4e0477a68b17084624552c331105f7a853c3ccbabd90e2b9272feae63012cf
6
+ metadata.gz: dd2ca2ac7a610ecd5d3d6537b7914f89347dca8da2f553a361168d837ca6ef1222a200af8d3f08debe49a6ae11408d91686871d2b3aba6c134001370fcae1a7f
7
+ data.tar.gz: 6d636b97f017f7103e9e3ecbe9c14189caf36d5abdf38fb8c125ea91274c06da5015b8e10ae67448e9fcb079dd673cad1e745cf132e1e5d8ac7d077a3a0de44d
data/.travis.yml CHANGED
@@ -3,7 +3,7 @@ language: ruby
3
3
  rvm:
4
4
  - 1.9.3
5
5
  - 2.0.0
6
- - 2.1.0
6
+ - 2.1.1
7
7
  - ruby-head
8
8
  - jruby-19mode
9
9
  - jruby-head
@@ -26,9 +26,9 @@ matrix:
26
26
  jdk: openjdk7
27
27
  - rvm: 2.0.0
28
28
  jdk: oraclejdk7
29
- - rvm: 2.1.0
29
+ - rvm: 2.1.1
30
30
  jdk: openjdk7
31
- - rvm: 2.1.0
31
+ - rvm: 2.1.1
32
32
  jdk: oraclejdk7
33
33
  - rvm: ruby-head
34
34
  jdk: openjdk7
data/LICENSE CHANGED
@@ -1,13 +1,19 @@
1
- Copyright (c) 2012 GWDG
1
+ # @markup text
2
+
3
+ The work represented by this source file is partially or entirely funded
4
+ by the EGI-InSPIRE project through the European Commission's 7th Framework
5
+ Programme (contract # INFSO-RI-261323)
6
+
7
+ Copyright (c) 2012-2014 GWDG, CESNET
2
8
 
3
9
  Licensed under the Apache License, Version 2.0 (the "License");
4
10
  you may not use this file except in compliance with the License.
5
11
  You may obtain a copy of the License at
6
12
 
7
- http://www.apache.org/licenses/LICENSE-2.0
13
+ http://www.apache.org/licenses/LICENSE-2.0
8
14
 
9
15
  Unless required by applicable law or agreed to in writing, software
10
16
  distributed under the License is distributed on an "AS IS" BASIS,
11
17
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
18
  See the License for the specific language governing permissions and
13
- limitations under the License.
19
+ limitations under the License.
data/Rakefile CHANGED
@@ -5,6 +5,9 @@ task :default => 'test'
5
5
  desc "Run all tests; includes rspec and coverage reports"
6
6
  task :test => 'rcov:all'
7
7
 
8
+ desc "Run all tests; includes rspec and coverage reports"
9
+ task :spec => 'test'
10
+
8
11
  Gem::Tasks.new(:build => {:tar => true, :zip => true}, :sign => {:checksum => true, :pgp => false})
9
12
 
10
13
  namespace :rcov do
@@ -22,9 +22,6 @@ occi --endpoint <%= ENDPOINT -%> --action describe --resource <%= res -%>
22
22
  ## Creating resources
23
23
  <% %w(compute network storage).each do |res| %>
24
24
  occi --endpoint <%= ENDPOINT -%> --action create [ --attribute attribute_name='attribute_value' ]+ [ --mixin mixin_type#mixin_term ]+ --resource <%= res -%>
25
- <% if res == 'compute' %>
26
- occi --endpoint <%= ENDPOINT -%> --action create [ --attribute attribute_name='attribute_value' ]+ [ --link /resource_type/instance_id ]+ --resource <%= res -%>
27
- <% end -%>
28
25
  <% end %>
29
26
 
30
27
  ## Linking/unlinking resources
@@ -89,6 +89,12 @@ module Occi::Cli
89
89
  options.auth.ca_file = ca_file
90
90
  end
91
91
 
92
+ opts.on("-s",
93
+ "--skip-ca-check",
94
+ "Skip server certificate verification [NOT recommended]") do
95
+ silence_warnings { OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE) }
96
+ end
97
+
92
98
  opts.on("-F",
93
99
  "--filter CATEGORY",
94
100
  String,
@@ -176,7 +182,7 @@ module Occi::Cli
176
182
  opts.on("-j",
177
183
  "--link URI",
178
184
  Array,
179
- "URI of an instance to be linked with the given resource, applicable for actions 'create' and 'link'") do |links|
185
+ "URI of an instance to be linked with the given resource, applicable only for action 'link'") do |links|
180
186
  options.links ||= []
181
187
 
182
188
  links.each do |link|
@@ -1,5 +1,5 @@
1
1
  module Occi
2
2
  module Cli
3
- VERSION = "4.2.3" unless defined?(::Occi::Cli::VERSION)
3
+ VERSION = "4.2.4" unless defined?(::Occi::Cli::VERSION)
4
4
  end
5
5
  end
data/occi-cli.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.test_files = `git ls-files -- {test,spec}/*`.split("\n")
20
20
  gem.require_paths = ["lib"]
21
21
 
22
- gem.add_dependency 'occi-api', '~> 4.2.2'
22
+ gem.add_dependency 'occi-api', '~> 4.2.3'
23
23
  gem.add_dependency 'json'
24
24
  gem.add_dependency 'highline'
25
25
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: occi-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.3
4
+ version: 4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Feldhaus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-14 00:00:00.000000000 Z
13
+ date: 2014-05-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: occi-api
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 4.2.2
21
+ version: 4.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ~>
27
27
  - !ruby/object:Gem::Version
28
- version: 4.2.2
28
+ version: 4.2.3
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: json
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.1.11
127
+ rubygems_version: 2.2.2
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Executable OCCI client