idlc-sdk-pfm 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/idlc-sdk-pfm/command/destroy.rb +19 -2
- data/lib/idlc-sdk-pfm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5928336bda6cddf0a90c384994675a8b610a068a7f7f006a0704c8424613855f
|
4
|
+
data.tar.gz: a36916f56af0e2401d239a9ef12d90a03225f69a2fd72e2329d9134f756d5a99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f1254d49926431c4baeafcec1b72ab49c76492d459f269aeaab44ae9b6d555eb52cd6cfb73e0b7dcbb02f679ac9745b46fb6dfbea5da22de3d9f754485a394
|
7
|
+
data.tar.gz: 5d95de81cd803cbdd4c44bb5fcee1fb413ef10ad8cfd33b59f7d5f1c9b0ef3f1803bef9ca627f127ae5da23926cfcf36febfbe243cf4951e0a4619cabe5bae06
|
@@ -6,6 +6,18 @@ module Pfm
|
|
6
6
|
class Destroy < Base
|
7
7
|
banner 'Usage: pfm destroy [options]'
|
8
8
|
|
9
|
+
option :config_file,
|
10
|
+
short: '-c FILE',
|
11
|
+
long: '--config-file FILE',
|
12
|
+
description: 'Optional environment metadata file',
|
13
|
+
default: nil
|
14
|
+
|
15
|
+
option :working_dir,
|
16
|
+
short: '-d DIR',
|
17
|
+
long: '--dir DIR',
|
18
|
+
description: 'Optional directory of infrastructure configuration to use',
|
19
|
+
default: ''
|
20
|
+
|
9
21
|
def initialize
|
10
22
|
super
|
11
23
|
@params_valid = true
|
@@ -17,8 +29,13 @@ module Pfm
|
|
17
29
|
read_and_validate_params
|
18
30
|
|
19
31
|
if params_valid?
|
20
|
-
|
21
|
-
|
32
|
+
if (@config[:config_file])
|
33
|
+
deploy_setupv2
|
34
|
+
plan(@config[:working_dir])
|
35
|
+
else
|
36
|
+
deploy_setup
|
37
|
+
plan(@workspace.tmp_dir)
|
38
|
+
end
|
22
39
|
# @workspace.cleanup causing bundler issues
|
23
40
|
0
|
24
41
|
else
|
data/lib/idlc-sdk-pfm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idlc-sdk-pfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Cazell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|