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 +4 -4
- data/lib/chamber/commands/initialize.rb +7 -3
- data/lib/chamber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d71e9e2055b85de9d08846b981141cbebdd8434c
|
4
|
+
data.tar.gz: 8fa25953552b4bb026d4ff4e033a85dc5589bf1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
-
|
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 = {})
|
data/lib/chamber/version.rb
CHANGED
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.
|
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-
|
14
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|