waz-cmd 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/waz +20 -13
- data/lib/waz-cmd/templates/list_affinity_groups.erb +1 -1
- data/lib/waz-cmd/version.rb +1 -1
- metadata +72 -109
data/bin/waz
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'waz-cmd'
|
3
|
+
require 'waz-cmd/version'
|
3
4
|
require 'commander/import'
|
4
5
|
require 'waz-blobs'
|
5
6
|
require 'uri'
|
@@ -9,7 +10,7 @@ require 'fileutils'
|
|
9
10
|
include Waz::Cmd
|
10
11
|
|
11
12
|
program :name, 'waz'
|
12
|
-
program :version,
|
13
|
+
program :version, Waz::Cmd::VERSION
|
13
14
|
program :description, 'Windows Azure Command-line Tool'
|
14
15
|
program :help, 'Author', 'Steve Marx (http://blog.smarx.com, Steve.Marx@microsoft.com, @smarx)'
|
15
16
|
|
@@ -473,18 +474,24 @@ command 'deploy' do |c|
|
|
473
474
|
blob = container.upload(URI::escape(name), f, 'application/octet-stream')
|
474
475
|
end
|
475
476
|
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
xml.
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
477
|
+
config = File.read(args[3])
|
478
|
+
config = config[3..-1] if config[0..2].force_encoding('utf-8') == "\xEF\xBB\xBF".force_encoding('utf-8')
|
479
|
+
begin
|
480
|
+
make_call("services/hostedservices/#{args[0]}/deploymentslots/#{args[1]}", :post, options,
|
481
|
+
Nokogiri::XML::Builder.new(:encoding => 'utf-8') { |xml|
|
482
|
+
xml.CreateDeployment('xmlns' => 'http://schemas.microsoft.com/windowsazure') {
|
483
|
+
xml.Name UUIDTools::UUID.random_create.to_s.gsub '-', ''
|
484
|
+
xml.PackageUrl URI::unescape blob.url
|
485
|
+
xml.Label Base64.encode64 name
|
486
|
+
xml.Configuration Base64.encode64 config
|
487
|
+
xml.StartDeployment 'true'
|
488
|
+
xml.TreatWarningsAsError 'false'
|
489
|
+
}
|
490
|
+
}.to_xml) do |response|
|
491
|
+
wait_for_completion options, response.headers[:x_ms_request_id]
|
492
|
+
end
|
493
|
+
rescue => e
|
494
|
+
p e
|
488
495
|
end
|
489
496
|
|
490
497
|
blob.destroy!
|
data/lib/waz-cmd/version.rb
CHANGED
metadata
CHANGED
@@ -1,117 +1,91 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: waz-cmd
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 0.2.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Steve Marx
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-07-09 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: commander
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &19385100 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: tilt
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: *19385100
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: tilt
|
27
|
+
requirement: &19384716 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
47
33
|
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: crack
|
51
34
|
prerelease: false
|
52
|
-
|
35
|
+
version_requirements: *19384716
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: crack
|
38
|
+
requirement: &19384272 !ruby/object:Gem::Requirement
|
53
39
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
version: "0"
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
61
44
|
type: :runtime
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: nokogiri
|
65
45
|
prerelease: false
|
66
|
-
|
46
|
+
version_requirements: *19384272
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: nokogiri
|
49
|
+
requirement: &19383924 !ruby/object:Gem::Requirement
|
67
50
|
none: false
|
68
|
-
requirements:
|
69
|
-
- -
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
version: "0"
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
75
55
|
type: :runtime
|
76
|
-
version_requirements: *id004
|
77
|
-
- !ruby/object:Gem::Dependency
|
78
|
-
name: waz-storage
|
79
56
|
prerelease: false
|
80
|
-
|
57
|
+
version_requirements: *19383924
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: waz-storage
|
60
|
+
requirement: &19383480 !ruby/object:Gem::Requirement
|
81
61
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
|
86
|
-
segments:
|
87
|
-
- 0
|
88
|
-
version: "0"
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
89
66
|
type: :runtime
|
90
|
-
version_requirements: *id005
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: uuidtools
|
93
67
|
prerelease: false
|
94
|
-
|
68
|
+
version_requirements: *19383480
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: uuidtools
|
71
|
+
requirement: &19382988 !ruby/object:Gem::Requirement
|
95
72
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
segments:
|
101
|
-
- 0
|
102
|
-
version: "0"
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
103
77
|
type: :runtime
|
104
|
-
|
105
|
-
|
106
|
-
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *19382988
|
80
|
+
description: This gem allows you to perform most of the available operations in the
|
81
|
+
Windows Azure Service Management API from a friendly commandline tool.
|
82
|
+
email:
|
107
83
|
- Steve.Marx@microsoft.com
|
108
|
-
executables:
|
84
|
+
executables:
|
109
85
|
- waz
|
110
86
|
extensions: []
|
111
|
-
|
112
87
|
extra_rdoc_files: []
|
113
|
-
|
114
|
-
files:
|
88
|
+
files:
|
115
89
|
- .gitignore
|
116
90
|
- Gemfile
|
117
91
|
- LICENSE
|
@@ -131,39 +105,28 @@ files:
|
|
131
105
|
- lib/waz-cmd/templates/show_storage.erb
|
132
106
|
- lib/waz-cmd/version.rb
|
133
107
|
- waz-cmd.gemspec
|
134
|
-
has_rdoc: true
|
135
108
|
homepage: http://github.com/smarx/waz-cmd
|
136
109
|
licenses: []
|
137
|
-
|
138
110
|
post_install_message:
|
139
111
|
rdoc_options: []
|
140
|
-
|
141
|
-
require_paths:
|
112
|
+
require_paths:
|
142
113
|
- lib
|
143
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
115
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
|
150
|
-
- 0
|
151
|
-
version: "0"
|
152
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ! '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
121
|
none: false
|
154
|
-
requirements:
|
155
|
-
- -
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
|
158
|
-
segments:
|
159
|
-
- 0
|
160
|
-
version: "0"
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
161
126
|
requirements: []
|
162
|
-
|
163
127
|
rubyforge_project:
|
164
|
-
rubygems_version: 1.
|
128
|
+
rubygems_version: 1.8.5
|
165
129
|
signing_key:
|
166
130
|
specification_version: 3
|
167
131
|
summary: Command-line tool to manage Windows Azure applications and storage accounts.
|
168
132
|
test_files: []
|
169
|
-
|