occi-cli 4.2.0.beta.16 → 4.2.0.beta.17

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
2
  SHA1:
3
- metadata.gz: 2ae47add82d1e227122778d88ee9a300dfb63873
4
- data.tar.gz: 938818b0e0210f0fd3dfe7c90d546f4da81b1829
3
+ metadata.gz: 553184ed6a0cfbe4fe8835f91acf30717c20ce54
4
+ data.tar.gz: e4745d6bb27fa7a13f69ea25ce2cd37e401ff494
5
5
  SHA512:
6
- metadata.gz: 73dca9cb77e9018df43f469db3253f688915407c842c1c896d95562bea9394f02149ad1308f56dd8b47f254a7cb30b8b67ae365d40217f9fe4edaf6e8f63f95c
7
- data.tar.gz: 0d8c8f459612f1bbf8ffc150252805baf6399cff58f5e5471084a79d47830cfcf1c08678d1f2af980947a48b18fcb22f656a9a1dd5f86bd05e5b2090b6483e9e
6
+ metadata.gz: 82d2282727f225d9b991c608e0bdeb1533118776ab2df4d1a26792a1938b8dfa2e29d94cda06bb25f2508d74ce5e4b39a818dfdd3411fd9cf63447a250bc2fc6
7
+ data.tar.gz: 45c25be34249f9f08607d735c3cc1facf79099cadfc2e0b3b2ed7147aeafb704638fea808e179cb7ef6a5c130d5411a5ff2c06ba2f58e92184ea21584bbc7f3c
data/README.md CHANGED
@@ -14,14 +14,10 @@ Requirements
14
14
  * RubyGems have to be installed
15
15
  * Rake has to be installed (e.g., `gem install rake`)
16
16
 
17
- ### Dependencies
18
- * `libxslt1-dev` or `libxslt-devel`
19
- * `libxml2-dev`or `libxml2-devel`
20
-
21
17
  ### Examples
22
18
  #### For distros based on Debian:
23
19
  ~~~
24
- apt-get install ruby rubygems ruby-dev libxslt1-dev libxml2-dev
20
+ apt-get install ruby rubygems ruby-dev
25
21
  ~~~
26
22
  ~~~
27
23
  ruby -v
@@ -31,7 +27,7 @@ ruby -v
31
27
 
32
28
  #### For distros based on RHEL:
33
29
  ~~~
34
- yum install libxml2-devel libxslt-devel ruby-devel openssl-devel gcc gcc-c++ ruby rubygems
30
+ yum install ruby-devel openssl-devel gcc gcc-c++ ruby rubygems
35
31
  ~~~
36
32
  ~~~
37
33
  ruby -v
@@ -146,7 +142,7 @@ To describe a specific OS template or Resource template use
146
142
 
147
143
  To create a compute resource with mixins use
148
144
 
149
- occi --endpoint https://<ENDPOINT>:<PORT>/ --action create --resource compute --mixin os_tpl#debian6 --mixin resource_tpl#small --attributes title="My rOCCI VM" --auth x509
145
+ occi --endpoint https://<ENDPOINT>:<PORT>/ --action create --resource compute --mixin os_tpl#debian6 --mixin resource_tpl#small --attribute occi.core.title="My rOCCI VM" --auth x509
150
146
 
151
147
  To delete a compute resource use
152
148
 
@@ -6,7 +6,7 @@
6
6
  occi --endpoint <%= ENDPOINT -%> --action list --resource os_tpl
7
7
  occi --endpoint <%= ENDPOINT -%> --action list --resource resource_tpl
8
8
  occi --endpoint <%= ENDPOINT -%> --action describe --resource os_tpl#debian6
9
- occi --endpoint <%= ENDPOINT -%> --action create --resource compute --mixin os_tpl#debian6 --mixin resource_tpl#small --attribute title="My rOCCI VM"
9
+ occi --endpoint <%= ENDPOINT -%> --action create --resource compute --mixin os_tpl#debian6 --mixin resource_tpl#small --attribute occi.core.title="My rOCCI VM"
10
10
  occi --endpoint <%= ENDPOINT -%> --action delete --resource /compute/65sd4f654sf65g4-s5fg65sfg465sfg-sf65g46sf5g4sdfg
11
11
 
12
12
  ## Listing resources
@@ -41,7 +41,8 @@ occi --endpoint <%= ENDPOINT -%> --action delete --resource <%= res -%>
41
41
 
42
42
  ## Triggering actions on resources
43
43
  <% %w(compute network storage).each do |res| %>
44
- occi --endpoint <%= ENDPOINT -%> --action trigger --trigger-action action_type#action_term [ --attribute attribute_name='attribute_value' ]+ --resource <%= res -%>
44
+ occi --endpoint <%= ENDPOINT -%> --action trigger --trigger-action action_scheme#action_term [ --attribute attribute_name='attribute_value' ]+ --resource <%= res -%>
45
+ occi --endpoint <%= ENDPOINT -%> --action trigger --trigger-action action_term [ --attribute attribute_name='attribute_value' ]+ --resource <%= res -%>
45
46
  <% end %>
46
47
 
47
48
  ## Other
@@ -10,7 +10,7 @@ module Occi::Cli
10
10
  class OcciOpts
11
11
 
12
12
  AUTH_METHODS = [:x509, :basic, :digest, :none].freeze
13
- MEDIA_TYPES = ["application/occi+json", "application/occi+xml", "text/plain,text/occi", "text/plain"].freeze
13
+ MEDIA_TYPES = ["application/occi+json", "text/plain,text/occi", "text/plain", "text/occi"].freeze
14
14
  ACTIONS = [:list, :describe, :create, :delete, :trigger, :link, :unlink].freeze
15
15
  LOG_OUTPUTS = [:stdout, :stderr].freeze
16
16
  LOG_LEVELS = [:debug, :error, :fatal, :info, :unknown, :warn].freeze
@@ -1,5 +1,5 @@
1
1
  module Occi
2
2
  module Cli
3
- VERSION = "4.2.0.beta.16" unless defined?(::Occi::Cli::VERSION)
3
+ VERSION = "4.2.0.beta.17" 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.0.beta.15'
22
+ gem.add_dependency 'occi-api', '= 4.2.0.beta.16'
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.0.beta.16
4
+ version: 4.2.0.beta.17
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-02-09 00:00:00.000000000 Z
13
+ date: 2014-02-15 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.0.beta.15
21
+ version: 4.2.0.beta.16
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.0.beta.15
28
+ version: 4.2.0.beta.16
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: json
31
31
  requirement: !ruby/object:Gem::Requirement