ruby-terraform 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6e2038484a3afb9ae5f1892067030bc70bdb330
4
- data.tar.gz: 83a93936beb7d16c96891577ab5cd42536867e8d
3
+ metadata.gz: d9bd2fd227f25cd2853bf4b4cdc34bc640db7348
4
+ data.tar.gz: b8c49b59eecb4cf3623cbd683253749e06a193ed
5
5
  SHA512:
6
- metadata.gz: 688080b50d97d4624e5dd7bd05d4cee95132cc2221d1dcd5b95f03f9614ee6699af63689d472c0ce7d7abe441c4ca8d69c7409bc37f160b4753555d3d9a27bf5
7
- data.tar.gz: b8d9bf122ad7d199042acb9beefa5c08d2f45a2db4b3f52592f5bd87cfdca196991b2d6ad72f9422c1b7833aa64f3a1e53b5225fb97463961b353c7fb03c22d0
6
+ metadata.gz: 18266b3c3e7394fdfe843b820d4752f0f5b2a19a423bb9d697ff75688e9c95416df2de37a69c521edc1bb45df8c00355eb112c2012d85dec9fa209dcdaae7a14
7
+ data.tar.gz: b72126e919adbef0de2f23e8b46b4eefc1a2c3cc36590ea57b8336455d00b21c4c1b26f82bf1e880c841d06756c57027c9e49fe0f4086ce67fc33ba382dbae54
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (0.2.0)
4
+ ruby-terraform (0.3.0)
5
5
  lino (~> 1.1)
6
6
 
7
7
  GEM
@@ -1,15 +1,42 @@
1
+ require 'ruby_terraform/version'
2
+ require 'ruby_terraform/commands'
3
+
1
4
  module RubyTerraform
2
5
  class << self
3
6
  attr_accessor :configuration
4
- end
5
7
 
6
- def self.configure
7
- self.configuration ||= Configuration.new
8
- yield(configuration)
9
- end
8
+ def configure
9
+ @configuration ||= Configuration.new
10
+ yield(@configuration)
11
+ end
12
+
13
+ def clean(opts = {})
14
+ Commands::Clean.new.execute(opts)
15
+ end
16
+
17
+ def get(opts = {})
18
+ Commands::Get.new.execute(opts)
19
+ end
20
+
21
+ def apply(opts = {})
22
+ Commands::Apply.new.execute(opts)
23
+ end
24
+
25
+ def destroy(opts = {})
26
+ Commands::Destroy.new.execute(opts)
27
+ end
10
28
 
11
- def self.reset!
12
- self.configuration = nil
29
+ def remote_config(opts = {})
30
+ Commands::RemoteConfig.new.execute(opts)
31
+ end
32
+
33
+ def output(opts = {})
34
+ Commands::Output.new.execute(opts)
35
+ end
36
+
37
+ def reset!
38
+ @configuration = nil
39
+ end
13
40
  end
14
41
 
15
42
  class Configuration
@@ -20,6 +47,3 @@ module RubyTerraform
20
47
  end
21
48
  end
22
49
  end
23
-
24
- require 'ruby_terraform/version'
25
- require 'ruby_terraform/commands'
@@ -1,3 +1,3 @@
1
1
  module RubyTerraform
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson