chamber 2.1.3 → 2.1.6

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: cf99ce8817120d57825c73d716c76b070ef31413
4
- data.tar.gz: 8f6153eaeeea1a6dacda02669633b4a2ae540e3d
3
+ metadata.gz: d71e9e2055b85de9d08846b981141cbebdd8434c
4
+ data.tar.gz: 8fa25953552b4bb026d4ff4e033a85dc5589bf1c
5
5
  SHA512:
6
- metadata.gz: 9234a837fdab2ee4976f1123b8ad6fbbf0b6e14aaf8d53df47780ed00ac33123b9e10538cb9476f77181c7cc00f22d389367a974a19a821b2d6a40d4ebbeb02a
7
- data.tar.gz: 83caf9fd9af6218c93b5917c1fc117e253499eecf264be430a7507eaf8cf81e9be028d7e4392b1d9d7cf0d6c0a12b18b7e573d8948854172c7117667fb3cd706
6
+ metadata.gz: ae0506e1b6dae00e4f4e82b788b4e7e4823e46718f4caa1b77e0e395f4aea166f5c090d870fe3d23630f8d476bff6f94d3fcbc85448436d217ec0bebce4e1bb0
7
+ data.tar.gz: d44fa35f61da759ca279d30b2db92345f7b02bc03462b4ccbd72b403d917e7d9e78f3f752c5ead384051d7e2d9a502aa23e0755fd23c29c0e64d05a58831c7f3
@@ -1,4 +1,5 @@
1
1
  require 'openssl'
2
+ require 'fileutils'
2
3
  require 'chamber/commands/base'
3
4
 
4
5
  module Chamber
@@ -8,7 +9,7 @@ class Initialize < Chamber::Commands::Base
8
9
  def initialize(options = {})
9
10
  super
10
11
 
11
- self.basepath = options[:basepath]
12
+ self.basepath = Chamber.configuration.basepath
12
13
  end
13
14
 
14
15
  def call
@@ -19,10 +20,13 @@ class Initialize < Chamber::Commands::Base
19
20
  `chmod 644 #{public_key_filepath}`
20
21
 
21
22
  unless ::File.read(gitignore_filepath).match(/^.chamber.pem$/)
22
- shell.append_to_file gitignore_filepath, private_key_filepath.basename
23
+ shell.append_to_file gitignore_filepath, private_key_filepath.basename.to_s
23
24
  end
24
25
 
25
- shell.copy_file settings_template_filepath, settings_filepath
26
+ unless settings_filepath.exist?
27
+ puts "Creating #{settings_filepath} Settings Template"
28
+ FileUtils.copy_file settings_template_filepath, settings_filepath
29
+ end
26
30
  end
27
31
 
28
32
  def self.call(options = {})
@@ -1,3 +1,3 @@
1
1
  module Chamber
2
- VERSION = '2.1.3'
2
+ VERSION = '2.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chamber
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - stevenhallen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-01-19 00:00:00.000000000 Z
14
+ date: 2014-01-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor