knife-cloudstack 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.rdoc +15 -0
- data/README.rdoc +18 -7
- data/lib/chef/knife/cs_base.rb +12 -8
- data/lib/chef/knife/cs_firewallrule_create.rb +115 -0
- data/lib/chef/knife/cs_forwardrule_create.rb +113 -0
- data/lib/chef/knife/cs_hosts.rb +7 -32
- data/lib/chef/knife/cs_keypair_create.rb +72 -0
- data/lib/chef/knife/cs_keypair_delete.rb +60 -0
- data/lib/chef/knife/cs_keypair_list.rb +83 -0
- data/lib/chef/knife/cs_publicip_list.rb +88 -0
- data/lib/chef/knife/cs_securitygroup_list.rb +134 -0
- data/lib/chef/knife/cs_server_create.rb +66 -15
- data/lib/chef/knife/cs_server_list.rb +4 -2
- data/lib/chef/knife/cs_stack_create.rb +17 -43
- data/lib/chef/knife/cs_template_list.rb +1 -1
- data/lib/chef/knife/cs_volume_create.rb +108 -0
- data/lib/knife-cloudstack/connection.rb +243 -100
- metadata +85 -86
- data/lib/knife-cloudstack/string_to_regexp.rb +0 -32
metadata
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-cloudstack
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 14
|
9
|
-
version: 0.0.14
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.15
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Ryan Holmes
|
13
9
|
- KC Braunschweig
|
14
10
|
- John E. Vincent
|
@@ -17,119 +13,122 @@ authors:
|
|
17
13
|
autorequire:
|
18
14
|
bindir: bin
|
19
15
|
cert_chain: []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
dependencies:
|
24
|
-
- !ruby/object:Gem::Dependency
|
16
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
25
19
|
name: chef
|
26
|
-
|
27
|
-
|
28
|
-
requirements:
|
29
|
-
- -
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
- 10
|
34
|
-
- 0
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
none: false
|
22
|
+
requirements:
|
23
|
+
- - ! '>='
|
24
|
+
- !ruby/object:Gem::Version
|
35
25
|
version: 0.10.0
|
36
26
|
type: :runtime
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: knife-windows
|
40
27
|
prerelease: false
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.10.0
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: knife-windows
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
48
42
|
type: :runtime
|
49
|
-
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
50
|
description: A Knife plugin to create, list and manage CloudStack servers
|
51
|
-
email:
|
51
|
+
email:
|
52
52
|
- rholmes@edmunds.com
|
53
53
|
- kcbraunschweig@gmail.com
|
54
54
|
- lusis.org+github.com@gmail.com
|
55
55
|
- chirag.jog@me.com
|
56
56
|
- sbotman@schubergphilis.com
|
57
57
|
executables: []
|
58
|
-
|
59
58
|
extensions: []
|
60
|
-
|
61
|
-
extra_rdoc_files:
|
59
|
+
extra_rdoc_files:
|
62
60
|
- README.rdoc
|
63
61
|
- CHANGES.rdoc
|
64
62
|
- LICENSE
|
65
|
-
files:
|
63
|
+
files:
|
66
64
|
- CHANGES.rdoc
|
67
65
|
- README.rdoc
|
68
66
|
- LICENSE
|
69
|
-
- lib/chef/knife/
|
70
|
-
- lib/chef/knife/
|
67
|
+
- lib/chef/knife/cs_keypair_delete.rb
|
68
|
+
- lib/chef/knife/cs_user_list.rb
|
69
|
+
- lib/chef/knife/cs_securitygroup_list.rb
|
70
|
+
- lib/chef/knife/cs_template_list.rb
|
71
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
|
80
72
|
- lib/chef/knife/cs_network_list.rb
|
81
|
-
- lib/chef/knife/
|
82
|
-
- lib/chef/knife/
|
83
|
-
- lib/chef/knife/
|
84
|
-
- lib/chef/knife/
|
85
|
-
- lib/chef/knife/cs_router_list.rb
|
73
|
+
- lib/chef/knife/cs_host_list.rb
|
74
|
+
- lib/chef/knife/cs_firewallrule_list.rb
|
75
|
+
- lib/chef/knife/cs_config_list.rb
|
76
|
+
- lib/chef/knife/cs_template_register.rb
|
86
77
|
- lib/chef/knife/cs_server_create.rb
|
87
|
-
- lib/chef/knife/
|
88
|
-
- lib/chef/knife/
|
89
|
-
- lib/chef/knife/cs_server_reboot.rb
|
78
|
+
- lib/chef/knife/cs_hosts.rb
|
79
|
+
- lib/chef/knife/cs_keypair_create.rb
|
90
80
|
- lib/chef/knife/cs_server_start.rb
|
81
|
+
- lib/chef/knife/cs_disk_list.rb
|
82
|
+
- lib/chef/knife/cs_router_list.rb
|
91
83
|
- lib/chef/knife/cs_server_stop.rb
|
92
|
-
- lib/chef/knife/
|
84
|
+
- lib/chef/knife/cs_publicip_list.rb
|
85
|
+
- lib/chef/knife/cs_pod_list.rb
|
86
|
+
- lib/chef/knife/cs_cluster_list.rb
|
87
|
+
- lib/chef/knife/cs_server_reboot.rb
|
88
|
+
- lib/chef/knife/cs_base.rb
|
89
|
+
- lib/chef/knife/cs_iso_list.rb
|
93
90
|
- 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
91
|
- lib/chef/knife/cs_volume_list.rb
|
92
|
+
- lib/chef/knife/cs_template_extract.rb
|
93
|
+
- lib/chef/knife/cs_service_list.rb
|
101
94
|
- lib/chef/knife/cs_zone_list.rb
|
95
|
+
- lib/chef/knife/cs_volume_create.rb
|
96
|
+
- lib/chef/knife/cs_firewallrule_create.rb
|
97
|
+
- lib/chef/knife/cs_forwardrule_create.rb
|
98
|
+
- lib/chef/knife/cs_template_create.rb
|
99
|
+
- lib/chef/knife/cs_oscategory_list.rb
|
100
|
+
- lib/chef/knife/cs_server_list.rb
|
101
|
+
- lib/chef/knife/cs_stack_delete.rb
|
102
|
+
- lib/chef/knife/cs_account_list.rb
|
103
|
+
- lib/chef/knife/cs_server_delete.rb
|
104
|
+
- lib/chef/knife/cs_domain_list.rb
|
105
|
+
- lib/chef/knife/cs_keypair_list.rb
|
106
|
+
- lib/chef/knife/cs_project_list.rb
|
107
|
+
- lib/chef/knife/cs_ostype_list.rb
|
102
108
|
- lib/knife-cloudstack/connection.rb
|
103
|
-
- lib/knife-cloudstack/string_to_regexp.rb
|
104
|
-
has_rdoc: true
|
105
109
|
homepage: http://cloudstack.org/
|
106
110
|
licenses: []
|
107
|
-
|
108
111
|
post_install_message:
|
109
112
|
rdoc_options: []
|
110
|
-
|
111
|
-
require_paths:
|
113
|
+
require_paths:
|
112
114
|
- lib
|
113
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
requirements:
|
122
|
-
- -
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
|
125
|
-
- 0
|
126
|
-
version: "0"
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
127
|
requirements: []
|
128
|
-
|
129
128
|
rubyforge_project:
|
130
|
-
rubygems_version: 1.
|
129
|
+
rubygems_version: 1.8.24
|
131
130
|
signing_key:
|
132
131
|
specification_version: 3
|
133
132
|
summary: A knife plugin for the CloudStack API
|
134
133
|
test_files: []
|
135
|
-
|
134
|
+
has_rdoc: true
|
@@ -1,32 +0,0 @@
|
|
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
|
-
|