knife-cloudstack 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/CHANGES.rdoc +50 -0
  2. data/README.rdoc +221 -42
  3. data/lib/chef/knife/cs_account_list.rb +130 -0
  4. data/lib/chef/knife/cs_base.rb +98 -0
  5. data/lib/chef/knife/cs_baselist.rb +81 -0
  6. data/lib/chef/knife/cs_cluster_list.rb +93 -0
  7. data/lib/chef/knife/cs_config_list.rb +85 -0
  8. data/lib/chef/knife/cs_disk_list.rb +89 -0
  9. data/lib/chef/knife/cs_domain_list.rb +83 -0
  10. data/lib/chef/knife/cs_firewallrule_list.rb +95 -0
  11. data/lib/chef/knife/cs_host_list.rb +95 -0
  12. data/lib/chef/knife/cs_hosts.rb +2 -2
  13. data/lib/chef/knife/cs_iso_list.rb +103 -0
  14. data/lib/chef/knife/cs_network_list.rb +56 -46
  15. data/lib/chef/knife/cs_oscategory_list.rb +78 -0
  16. data/lib/chef/knife/cs_ostype_list.rb +80 -0
  17. data/lib/chef/knife/cs_pod_list.rb +93 -0
  18. data/lib/chef/knife/cs_project_list.rb +92 -0
  19. data/lib/chef/knife/cs_router_list.rb +94 -0
  20. data/lib/chef/knife/cs_server_create.rb +185 -144
  21. data/lib/chef/knife/cs_server_delete.rb +62 -79
  22. data/lib/chef/knife/cs_server_list.rb +136 -57
  23. data/lib/chef/knife/cs_server_reboot.rb +50 -54
  24. data/lib/chef/knife/cs_server_start.rb +48 -52
  25. data/lib/chef/knife/cs_server_stop.rb +54 -55
  26. data/lib/chef/knife/cs_service_list.rb +62 -41
  27. data/lib/chef/knife/cs_stack_create.rb +2 -2
  28. data/lib/chef/knife/cs_stack_delete.rb +2 -2
  29. data/lib/chef/knife/cs_template_create.rb +121 -0
  30. data/lib/chef/knife/cs_template_extract.rb +104 -0
  31. data/lib/chef/knife/cs_template_list.rb +65 -63
  32. data/lib/chef/knife/cs_template_register.rb +180 -0
  33. data/lib/chef/knife/cs_user_list.rb +93 -0
  34. data/lib/chef/knife/cs_volume_list.rb +94 -0
  35. data/lib/chef/knife/cs_zone_list.rb +55 -36
  36. data/lib/knife-cloudstack/connection.rb +75 -22
  37. data/lib/knife-cloudstack/string_to_regexp.rb +32 -0
  38. 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
- version: 0.0.13
5
- prerelease:
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
- date: 2012-11-28 00:00:00.000000000 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
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
- version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
- requirements:
46
- - - ! '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
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
- extra_rdoc_files:
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-cloudstack/connection.rb
66
- - lib/chef/knife/cs_server_list.rb
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/cs_template_list.rb
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/cs_server_start.rb
77
- - lib/chef/knife/cs_server_create.rb
78
- - lib/chef/knife/cs_server_reboot.rb
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
- require_paths:
110
+
111
+ require_paths:
84
112
  - lib
85
- required_ruby_version: !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
88
- - - ! '>='
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- required_rubygems_version: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
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.8.24
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
+