knife-cloudstack 0.0.13 → 0.0.14
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.
- data/CHANGES.rdoc +50 -0
- data/README.rdoc +221 -42
- data/lib/chef/knife/cs_account_list.rb +130 -0
- data/lib/chef/knife/cs_base.rb +98 -0
- data/lib/chef/knife/cs_baselist.rb +81 -0
- data/lib/chef/knife/cs_cluster_list.rb +93 -0
- data/lib/chef/knife/cs_config_list.rb +85 -0
- data/lib/chef/knife/cs_disk_list.rb +89 -0
- data/lib/chef/knife/cs_domain_list.rb +83 -0
- data/lib/chef/knife/cs_firewallrule_list.rb +95 -0
- data/lib/chef/knife/cs_host_list.rb +95 -0
- data/lib/chef/knife/cs_hosts.rb +2 -2
- data/lib/chef/knife/cs_iso_list.rb +103 -0
- data/lib/chef/knife/cs_network_list.rb +56 -46
- data/lib/chef/knife/cs_oscategory_list.rb +78 -0
- data/lib/chef/knife/cs_ostype_list.rb +80 -0
- data/lib/chef/knife/cs_pod_list.rb +93 -0
- data/lib/chef/knife/cs_project_list.rb +92 -0
- data/lib/chef/knife/cs_router_list.rb +94 -0
- data/lib/chef/knife/cs_server_create.rb +185 -144
- data/lib/chef/knife/cs_server_delete.rb +62 -79
- data/lib/chef/knife/cs_server_list.rb +136 -57
- data/lib/chef/knife/cs_server_reboot.rb +50 -54
- data/lib/chef/knife/cs_server_start.rb +48 -52
- data/lib/chef/knife/cs_server_stop.rb +54 -55
- data/lib/chef/knife/cs_service_list.rb +62 -41
- data/lib/chef/knife/cs_stack_create.rb +2 -2
- data/lib/chef/knife/cs_stack_delete.rb +2 -2
- data/lib/chef/knife/cs_template_create.rb +121 -0
- data/lib/chef/knife/cs_template_extract.rb +104 -0
- data/lib/chef/knife/cs_template_list.rb +65 -63
- data/lib/chef/knife/cs_template_register.rb +180 -0
- data/lib/chef/knife/cs_user_list.rb +93 -0
- data/lib/chef/knife/cs_volume_list.rb +94 -0
- data/lib/chef/knife/cs_zone_list.rb +55 -36
- data/lib/knife-cloudstack/connection.rb +75 -22
- data/lib/knife-cloudstack/string_to_regexp.rb +32 -0
- metadata +93 -61
@@ -0,0 +1,32 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Sander Botman (<sbotman@schubergphilis.com>)
|
3
|
+
# Copyright:: Copyright (c) 2013 Sander Botman.
|
4
|
+
# License:: Apache License, Version 2.0
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
class String
|
20
|
+
def to_regexp
|
21
|
+
return nil unless self.strip.match(/\A\/(.*)\/(.*)\Z/mx)
|
22
|
+
regexp , flags = $1 , $2
|
23
|
+
return nil if !regexp || flags =~ /[^xim]/m
|
24
|
+
|
25
|
+
x = /x/.match(flags) && Regexp::EXTENDED
|
26
|
+
i = /i/.match(flags) && Regexp::IGNORECASE
|
27
|
+
m = /m/.match(flags) && Regexp::MULTILINE
|
28
|
+
|
29
|
+
Regexp.new regexp , [x,i,m].inject(0){|a,f| f ? a+f : a }
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
metadata
CHANGED
@@ -1,103 +1,135 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-cloudstack
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 14
|
9
|
+
version: 0.0.14
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Ryan Holmes
|
9
13
|
- KC Braunschweig
|
10
14
|
- John E. Vincent
|
11
15
|
- Chirag Jog
|
16
|
+
- Sander Botman
|
12
17
|
autorequire:
|
13
18
|
bindir: bin
|
14
19
|
cert_chain: []
|
15
|
-
|
16
|
-
|
17
|
-
|
20
|
+
|
21
|
+
date: 2013-04-14 00:00:00 -04:00
|
22
|
+
default_executable:
|
23
|
+
dependencies:
|
24
|
+
- !ruby/object:Gem::Dependency
|
18
25
|
name: chef
|
19
|
-
requirement: !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
|
-
requirements:
|
22
|
-
- - ! '>='
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: 0.10.0
|
25
|
-
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 10
|
34
|
+
- 0
|
32
35
|
version: 0.10.0
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: knife-windows
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
|
-
requirements:
|
38
|
-
- - ! '>='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
36
|
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: knife-windows
|
42
40
|
prerelease: false
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
49
50
|
description: A Knife plugin to create, list and manage CloudStack servers
|
50
|
-
email:
|
51
|
+
email:
|
51
52
|
- rholmes@edmunds.com
|
52
53
|
- kcbraunschweig@gmail.com
|
53
54
|
- lusis.org+github.com@gmail.com
|
54
55
|
- chirag.jog@me.com
|
56
|
+
- sbotman@schubergphilis.com
|
55
57
|
executables: []
|
58
|
+
|
56
59
|
extensions: []
|
57
|
-
|
60
|
+
|
61
|
+
extra_rdoc_files:
|
58
62
|
- README.rdoc
|
59
63
|
- CHANGES.rdoc
|
60
64
|
- LICENSE
|
61
|
-
files:
|
65
|
+
files:
|
62
66
|
- CHANGES.rdoc
|
63
67
|
- README.rdoc
|
64
68
|
- LICENSE
|
65
|
-
- lib/knife
|
66
|
-
- lib/chef/knife/
|
69
|
+
- lib/chef/knife/cs_account_list.rb
|
70
|
+
- lib/chef/knife/cs_base.rb
|
71
|
+
- lib/chef/knife/cs_baselist.rb
|
72
|
+
- lib/chef/knife/cs_cluster_list.rb
|
73
|
+
- lib/chef/knife/cs_config_list.rb
|
74
|
+
- lib/chef/knife/cs_disk_list.rb
|
75
|
+
- lib/chef/knife/cs_domain_list.rb
|
76
|
+
- lib/chef/knife/cs_firewallrule_list.rb
|
77
|
+
- lib/chef/knife/cs_host_list.rb
|
78
|
+
- lib/chef/knife/cs_hosts.rb
|
79
|
+
- lib/chef/knife/cs_iso_list.rb
|
67
80
|
- lib/chef/knife/cs_network_list.rb
|
81
|
+
- lib/chef/knife/cs_oscategory_list.rb
|
82
|
+
- lib/chef/knife/cs_ostype_list.rb
|
83
|
+
- lib/chef/knife/cs_pod_list.rb
|
84
|
+
- lib/chef/knife/cs_project_list.rb
|
85
|
+
- lib/chef/knife/cs_router_list.rb
|
86
|
+
- lib/chef/knife/cs_server_create.rb
|
68
87
|
- lib/chef/knife/cs_server_delete.rb
|
69
|
-
- lib/chef/knife/
|
88
|
+
- lib/chef/knife/cs_server_list.rb
|
89
|
+
- lib/chef/knife/cs_server_reboot.rb
|
90
|
+
- lib/chef/knife/cs_server_start.rb
|
70
91
|
- lib/chef/knife/cs_server_stop.rb
|
71
|
-
- lib/chef/knife/cs_zone_list.rb
|
72
|
-
- lib/chef/knife/cs_stack_delete.rb
|
73
|
-
- lib/chef/knife/cs_hosts.rb
|
74
|
-
- lib/chef/knife/cs_stack_create.rb
|
75
92
|
- lib/chef/knife/cs_service_list.rb
|
76
|
-
- lib/chef/knife/
|
77
|
-
- lib/chef/knife/
|
78
|
-
- lib/chef/knife/
|
93
|
+
- lib/chef/knife/cs_stack_create.rb
|
94
|
+
- lib/chef/knife/cs_stack_delete.rb
|
95
|
+
- lib/chef/knife/cs_template_create.rb
|
96
|
+
- lib/chef/knife/cs_template_extract.rb
|
97
|
+
- lib/chef/knife/cs_template_list.rb
|
98
|
+
- lib/chef/knife/cs_template_register.rb
|
99
|
+
- lib/chef/knife/cs_user_list.rb
|
100
|
+
- lib/chef/knife/cs_volume_list.rb
|
101
|
+
- lib/chef/knife/cs_zone_list.rb
|
102
|
+
- lib/knife-cloudstack/connection.rb
|
103
|
+
- lib/knife-cloudstack/string_to_regexp.rb
|
104
|
+
has_rdoc: true
|
79
105
|
homepage: http://cloudstack.org/
|
80
106
|
licenses: []
|
107
|
+
|
81
108
|
post_install_message:
|
82
109
|
rdoc_options: []
|
83
|
-
|
110
|
+
|
111
|
+
require_paths:
|
84
112
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
segments:
|
118
|
+
- 0
|
119
|
+
version: "0"
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
version: "0"
|
97
127
|
requirements: []
|
128
|
+
|
98
129
|
rubyforge_project:
|
99
|
-
rubygems_version: 1.
|
130
|
+
rubygems_version: 1.3.6
|
100
131
|
signing_key:
|
101
132
|
specification_version: 3
|
102
133
|
summary: A knife plugin for the CloudStack API
|
103
134
|
test_files: []
|
135
|
+
|