arcanus 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arcanus/command/edit.rb +1 -1
- data/lib/arcanus/command/unlock.rb +11 -0
- data/lib/arcanus/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3046fa13db4b1d93dadc5adeb696c2c7b5281e12
|
4
|
+
data.tar.gz: 0059c2568c2cf03204ffaf9f06d4aa7b4ef65bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa0afca95a568dc275976b64cb1f77556a5f59525382c81df0c6a14ebaab91fa9b03b9ac6c5b4b4b7cf095e03d2c6fb6d91ff04709b2a006f72ad673ea5a36be
|
7
|
+
data.tar.gz: 5d8443ac96685dfbdc90d4fa0622451ea1f3875f6419be4f4a586f7a0fb07427fa270bda3fcb58ace75fc91f97ca97d8b81320a276be44e3caa41359b2a8255c
|
data/lib/arcanus/command/edit.rb
CHANGED
@@ -3,6 +3,7 @@ module Arcanus::Command
|
|
3
3
|
description 'Unlocks key so secrets can be encrypted/decrypted'
|
4
4
|
|
5
5
|
def execute
|
6
|
+
return unless has_chest?
|
6
7
|
return if already_unlocked?
|
7
8
|
|
8
9
|
ui.print "This repository's Arcanus key is locked by a password."
|
@@ -20,6 +21,16 @@ module Arcanus::Command
|
|
20
21
|
|
21
22
|
private
|
22
23
|
|
24
|
+
def has_chest?
|
25
|
+
return true if repo.has_chest_file?
|
26
|
+
|
27
|
+
ui.error 'This repository does not have an Arcanus chest.'
|
28
|
+
ui.print 'Create one by running:'
|
29
|
+
ui.info 'arcanus setup'
|
30
|
+
|
31
|
+
false
|
32
|
+
end
|
33
|
+
|
23
34
|
def already_unlocked?
|
24
35
|
return unless repo.has_unlocked_key?
|
25
36
|
|
data/lib/arcanus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arcanus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane da Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: childprocess
|
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 2.
|
101
|
+
version: '2.1'
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
104
|
- - ">="
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.5.1
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Arcanus command line interface
|