sakurraform 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sakurraform/cli/status.rb +7 -1
- data/lib/sakurraform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 144cfbf526f96fe69968b77ce76729dc1216958f
|
4
|
+
data.tar.gz: 30be5a80c2f652bd240de9fb58f39d40569c3784
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6644bc1521b6e994805fa6be3fb2a043b56c81b361fe6be335e051fac51bbcf06b3bae163235e9672cd41f20c0ad6d61cb92225362454c7a732e502a4f8feb4
|
7
|
+
data.tar.gz: 8430e15104669f4e256f71122ec190e6b80c5642b4c84513f63d247f18ed1428252ffeb1b471dd29b412b4eef81012fcafaea6b3dcc84adc62c118e54e94542b
|
data/CHANGELOG.md
CHANGED
@@ -7,7 +7,8 @@ module SakurraForm
|
|
7
7
|
File.expand_path("../../", __FILE__)
|
8
8
|
end
|
9
9
|
|
10
|
-
desc 'status', "show status"
|
10
|
+
desc 'status', "show status [--sync](to update cached_state)"
|
11
|
+
option :sync, :type => :boolean
|
11
12
|
def status
|
12
13
|
## Showdown Network
|
13
14
|
col_network = SakurraForm::Collection.new('network')
|
@@ -21,6 +22,11 @@ module SakurraForm
|
|
21
22
|
col_server.collection_resources(true)
|
22
23
|
Formatador.display_line('[green]Server resources[/]')
|
23
24
|
Formatador.display_table(build_state_server(col_server), [:name, :sakurraform_name, :sakura_id, :ipaddress, :status, :last_state_changed])
|
25
|
+
if options[:sync]
|
26
|
+
col_server.resources.each do |r|
|
27
|
+
create_file "state/server/#{r.resource_id}.yml", r.remote_state.to_yaml
|
28
|
+
end
|
29
|
+
end
|
24
30
|
end
|
25
31
|
|
26
32
|
end
|
data/lib/sakurraform/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sakurraform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sawanoboly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|