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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 195b95ed88625b59feb47da062c5cb5e440e654869278487494fecc59f9a1c92
4
- data.tar.gz: 6fcd69c20468b3177357b9bdcc526688c54fbe69d9c2fa5937ae3e0a27046c7f
3
+ metadata.gz: 5928336bda6cddf0a90c384994675a8b610a068a7f7f006a0704c8424613855f
4
+ data.tar.gz: a36916f56af0e2401d239a9ef12d90a03225f69a2fd72e2329d9134f756d5a99
5
5
  SHA512:
6
- metadata.gz: d7e32af23b66db786fea40a7b336235831f34f24abbaca6b46304c969c06543723edca06c77a8d8e6945c8f7c7ac43fb31e627a9bd36476c7db13a5a10b9e055
7
- data.tar.gz: 32812f0440f4a47d85c6fbad37d17109a0d64fab630d1445ef2778006f2048fcfe8f23f7438f630cc3db0f6d49658a59bb027ab21cbcf14822541bc824d930d0
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
- deploy_setup
21
- destroy
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
@@ -1,3 +1,3 @@
1
1
  module Pfm
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
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.3
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-22 00:00:00.000000000 Z
11
+ date: 2017-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler