ruby-terraform 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby_terraform.rb +34 -10
- data/lib/ruby_terraform/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9bd2fd227f25cd2853bf4b4cdc34bc640db7348
|
4
|
+
data.tar.gz: b8c49b59eecb4cf3623cbd683253749e06a193ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18266b3c3e7394fdfe843b820d4752f0f5b2a19a423bb9d697ff75688e9c95416df2de37a69c521edc1bb45df8c00355eb112c2012d85dec9fa209dcdaae7a14
|
7
|
+
data.tar.gz: b72126e919adbef0de2f23e8b46b4eefc1a2c3cc36590ea57b8336455d00b21c4c1b26f82bf1e880c841d06756c57027c9e49fe0f4086ce67fc33ba382dbae54
|
data/Gemfile.lock
CHANGED
data/lib/ruby_terraform.rb
CHANGED
@@ -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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
12
|
-
|
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'
|