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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0d62a5f42569d645e9a36843de64c9726bdb32c
4
- data.tar.gz: 50d217d54787cb4725a2575c76b55d76192780df
3
+ metadata.gz: 144cfbf526f96fe69968b77ce76729dc1216958f
4
+ data.tar.gz: 30be5a80c2f652bd240de9fb58f39d40569c3784
5
5
  SHA512:
6
- metadata.gz: 03c4d7a5f12cfff6d49f556066a922a4748200add42eb4c1134dbd722462937650145aba19c9123fba00c95cf2ef477f30cdd904390f8cea1a9c39c449234c5e
7
- data.tar.gz: 53ecc192f025add789925ada292b32aae5aaafb44ebd12aae20e703097b7707e1844a5ec3e88665a7c2aebf90a80d7a8155dd96c1edc1cccb35e27c8df8af124
6
+ metadata.gz: b6644bc1521b6e994805fa6be3fb2a043b56c81b361fe6be335e051fac51bbcf06b3bae163235e9672cd41f20c0ad6d61cb92225362454c7a732e502a4f8feb4
7
+ data.tar.gz: 8430e15104669f4e256f71122ec190e6b80c5642b4c84513f63d247f18ed1428252ffeb1b471dd29b412b4eef81012fcafaea6b3dcc84adc62c118e54e94542b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG of sakurraform
2
2
 
3
+ ## v0.0.5
4
+
5
+ - Sync cached_state
6
+
3
7
  ## v0.0.4
4
8
 
5
9
  - cat object from bs
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SakurraForm
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor