vaulty 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.travis.yml +4 -3
- data/Gemfile +1 -1
- data/README.md +5 -4
- data/Rakefile +2 -2
- data/lib/vaulty/cli/add.rb +14 -2
- data/lib/vaulty/cli/command.rb +30 -6
- data/lib/vaulty/cli/delete.rb +2 -2
- data/lib/vaulty/cli/tree.rb +3 -8
- data/lib/vaulty/cli_app.rb +7 -81
- data/lib/vaulty/output/banner.rb +2 -2
- data/lib/vaulty/output/table.rb +3 -3
- data/lib/vaulty/output/tree.rb +7 -7
- data/lib/vaulty/vault_tree.rb +2 -2
- data/lib/vaulty/version.rb +1 -1
- data/lib/vaulty.rb +28 -0
- data/vaulty.gemspec +4 -3
- data/vaulty.rdoc +6 -43
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c7dbd18027d85422fd9b764cabc3acb107bbd3f
|
4
|
+
data.tar.gz: da99bc09d1f9c4334c712680abadbf206792d470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c724876d426647cb1786e74fcf8bbeb6de6f0bb80181a2f3a6d4b395e5fb8652a9ee013ad2b9195af74ca9c873827713ee1a5de36965be2df6dc5e3915c629d
|
7
|
+
data.tar.gz: b44b647ca87762201faa9a48c6676939d287851c92d30c26cbc82d984c53d5c3bf3095f0219228ea1de6c15bcac80827d9b7de390f6016a2eaa45702b9785789
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.travis.yml
CHANGED
@@ -6,7 +6,7 @@ cache: bundler
|
|
6
6
|
before_install:
|
7
7
|
- curl -sLo vault.zip https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip
|
8
8
|
- unzip vault.zip
|
9
|
-
- mkdir ~/bin
|
9
|
+
- mkdir -p ~/bin
|
10
10
|
- mv vault ~/bin
|
11
11
|
- export PATH="~/bin:$PATH"
|
12
12
|
- gem update --remote bundler
|
@@ -16,10 +16,11 @@ install:
|
|
16
16
|
|
17
17
|
env:
|
18
18
|
- VAULT_VERSION=0.7.0
|
19
|
+
- VAULT_VERSION=0.8.3
|
19
20
|
|
20
21
|
rvm:
|
21
|
-
- 2.3.
|
22
|
-
- 2.4.
|
22
|
+
- 2.3.5
|
23
|
+
- 2.4.2
|
23
24
|
|
24
25
|
script:
|
25
26
|
- 'bundle exec rake spec'
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
# Vaulty
|
2
|
-
[![
|
3
|
-
[![
|
4
|
-
[![
|
1
|
+
# Vaulty
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/vaulty.svg)](https://badge.fury.io/rb/vaulty)
|
3
|
+
[![Build Status](https://travis-ci.org/playpasshq/vaulty.svg?branch=master)](https://travis-ci.org/playpasshq/vaulty)
|
4
|
+
[![Test Coverage](https://codeclimate.com/github/playpasshq/vaulty/badges/coverage.svg)](https://codeclimate.com/github/playpasshq/vaulty/coverage)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/playpasshq/vaulty/badges/gpa.svg)](https://codeclimate.com/github/playpasshq/vaulty)
|
5
6
|
[![Issue Count](https://codeclimate.com/github/playpasshq/vaulty/badges/issue_count.svg)](https://codeclimate.com/github/playpasshq/vaulty)
|
6
7
|
[![Dependency Status](https://gemnasium.com/badges/github.com/playpasshq/vaulty.svg)](https://gemnasium.com/github.com/playpasshq/vaulty)
|
7
8
|
[![Inline docs](http://inch-ci.org/github/playpasshq/vaulty.svg)](http://inch-ci.org/github/playpasshq/vaulty)
|
data/Rakefile
CHANGED
@@ -6,8 +6,8 @@ require 'bundler/gem_tasks'
|
|
6
6
|
begin
|
7
7
|
Bundler.setup(:default, :development)
|
8
8
|
rescue Bundler::BundlerError => e
|
9
|
-
|
10
|
-
|
9
|
+
warn e.message
|
10
|
+
warn 'Run `bundle install` to install missing gems'
|
11
11
|
exit e.status_code
|
12
12
|
end
|
13
13
|
|
data/lib/vaulty/cli/add.rb
CHANGED
@@ -4,9 +4,11 @@ module Vaulty
|
|
4
4
|
attr_reader :catacomb, :data
|
5
5
|
# @param [Catacomb] catacomb instance
|
6
6
|
# @param [Hash] data
|
7
|
-
|
7
|
+
# @param [Hash] files
|
8
|
+
def initialize(catacomb:, data: {}, files: {})
|
8
9
|
@catacomb = catacomb
|
9
|
-
|
10
|
+
files_with_content = read_file_contents!(files)
|
11
|
+
@data = data.merge(files_with_content)
|
10
12
|
end
|
11
13
|
|
12
14
|
def call
|
@@ -27,6 +29,16 @@ module Vaulty
|
|
27
29
|
def matching_keys
|
28
30
|
@matching_keys ||= catacomb.matching_keys(data.keys)
|
29
31
|
end
|
32
|
+
|
33
|
+
def read_file_contents!(files)
|
34
|
+
files.each_with_object({}) do |(key, path), memo|
|
35
|
+
memo[key] = read_file(path)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def read_file(path)
|
40
|
+
File.read(File.expand_path(path))
|
41
|
+
end
|
30
42
|
end
|
31
43
|
end
|
32
44
|
end
|
data/lib/vaulty/cli/command.rb
CHANGED
@@ -1,21 +1,45 @@
|
|
1
1
|
module Vaulty
|
2
2
|
module CLI
|
3
3
|
class Command
|
4
|
-
|
5
|
-
|
4
|
+
# Interface method should be defined by subclasses
|
5
|
+
# @raise [NotImplementedError]
|
6
|
+
#
|
7
|
+
def call
|
8
|
+
raise NotImplementedError, "#{inspect}.call is not implemented"
|
6
9
|
end
|
7
10
|
|
8
|
-
|
9
|
-
|
11
|
+
# Render a banner
|
12
|
+
# @see Vaulty::Output::Banner
|
13
|
+
# @param [String] msg to be placed in the banner
|
14
|
+
# @param [Symbol] color optional color
|
15
|
+
#
|
16
|
+
def banner(msg, color: :green)
|
17
|
+
Vaulty::Output::Banner.render(msg, color: color, prompt: prompt)
|
10
18
|
end
|
11
19
|
|
12
|
-
|
13
|
-
|
20
|
+
# Renders a table
|
21
|
+
# @param [Array<Array>] data row/columns
|
22
|
+
# @param [Hash] highlgiht options passed to (see Vaulty::Output::HighlightFilter)
|
23
|
+
# @option highlight [Array] :matching strings to highlight
|
24
|
+
# @option highlight [Symbol] :color to be used for highlighting
|
25
|
+
#
|
26
|
+
def table(data, highlight: {})
|
27
|
+
Vaulty::Output::Table.render(data, highlight: highlight, prompt: prompt)
|
14
28
|
end
|
15
29
|
|
30
|
+
# Initializes a new command with the args and calls it
|
31
|
+
# @param [Hash] args anything
|
32
|
+
#
|
16
33
|
def self.call(*args)
|
17
34
|
new(*args).call
|
18
35
|
end
|
36
|
+
|
37
|
+
# Returns an instance of {TTY::Prompt}
|
38
|
+
# @return [TTY::Prompt] instance
|
39
|
+
#
|
40
|
+
def prompt
|
41
|
+
Vaulty.prompt
|
42
|
+
end
|
19
43
|
end
|
20
44
|
end
|
21
45
|
end
|
data/lib/vaulty/cli/delete.rb
CHANGED
@@ -9,7 +9,7 @@ module Vaulty
|
|
9
9
|
def call
|
10
10
|
banner("Current value #{catacomb.path.inspect}")
|
11
11
|
# Render the tree first so the user knows what we will delete
|
12
|
-
Vaulty::CLI::Tree.call(catacomb)
|
12
|
+
vaulty_tree = Vaulty::CLI::Tree.call(catacomb: catacomb)
|
13
13
|
# Confirmation
|
14
14
|
return if prompt.no?('All above data will be ' \
|
15
15
|
'recursively deleted! Are you sure?', color: :red)
|
@@ -27,7 +27,7 @@ module Vaulty
|
|
27
27
|
def delete_recursively(tree, path = [])
|
28
28
|
Array(tree).each do |folder|
|
29
29
|
current_path = path + [folder.name]
|
30
|
-
|
30
|
+
Vaulty.catacomb.delete(current_path.join('/')) unless folder.data.empty?
|
31
31
|
delete_recursively(folder.children, current_path) unless folder.children.empty?
|
32
32
|
end
|
33
33
|
end
|
data/lib/vaulty/cli/tree.rb
CHANGED
@@ -1,12 +1,6 @@
|
|
1
1
|
module Vaulty
|
2
2
|
module CLI
|
3
3
|
class Tree < Command
|
4
|
-
class Empty < GLI::CustomExit
|
5
|
-
def initialize(path)
|
6
|
-
super("Path #{path.inspect} contains nothing", -1)
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
4
|
attr_reader :catacomb
|
11
5
|
# @param [Catacomb] catacomb instance
|
12
6
|
def initialize(catacomb:)
|
@@ -19,8 +13,9 @@ module Vaulty
|
|
19
13
|
vaulty_tree = Vaulty::VaultTree.new(catacomb: catacomb).tree
|
20
14
|
spinner.stop
|
21
15
|
|
22
|
-
raise
|
23
|
-
Vaulty::Output::Tree.render(vaulty_tree)
|
16
|
+
raise Vaulty::EmptyPath, catacomb.path if vaulty_tree.empty?
|
17
|
+
Vaulty::Output::Tree.render(vaulty_tree, prompt: prompt)
|
18
|
+
vaulty_tree
|
24
19
|
end
|
25
20
|
end
|
26
21
|
end
|
data/lib/vaulty/cli_app.rb
CHANGED
@@ -2,7 +2,7 @@ module Vaulty
|
|
2
2
|
class CLIApp
|
3
3
|
extend GLI::App
|
4
4
|
|
5
|
-
program_desc '
|
5
|
+
program_desc 'Vault CLI on steriods'
|
6
6
|
|
7
7
|
version Vaulty::VERSION
|
8
8
|
|
@@ -13,24 +13,20 @@ module Vaulty
|
|
13
13
|
Hash[*value.split(':')]
|
14
14
|
end
|
15
15
|
|
16
|
-
desc 'Describe some switch here'
|
17
|
-
switch %i(s switch)
|
18
|
-
|
19
|
-
desc 'Describe some flag here'
|
20
|
-
default_value 'the default'
|
21
|
-
arg_name 'The name of the argument'
|
22
|
-
flag %i(f flagname)
|
23
|
-
|
24
16
|
desc 'Add a new key/value to the given `PATH`, multiple `key:value` can be provided'
|
25
17
|
arg(:path)
|
26
18
|
command :add do |c|
|
27
19
|
c.flag %i(secret s), desc: 'Key/Values to save', type: Array, multiple: true,
|
28
20
|
required: true, arg_name: 'key:secret'
|
29
21
|
|
22
|
+
c.flag %i(file f), desc: 'Key/File to be uploaded', type: Array, multiple: true,
|
23
|
+
arg_name: 'key:/path/file.ext'
|
24
|
+
|
30
25
|
c.action do |_global_options, options, _args|
|
31
26
|
data = options[:secret].reduce({}, :merge)
|
27
|
+
files = options[:file].reduce({}, :merge)
|
32
28
|
catacomb = options[:catacomb]
|
33
|
-
Vaulty::CLI::Add.call(catacomb: catacomb, data: data)
|
29
|
+
Vaulty::CLI::Add.call(catacomb: catacomb, data: data, files: files)
|
34
30
|
end
|
35
31
|
end
|
36
32
|
|
@@ -52,80 +48,10 @@ module Vaulty
|
|
52
48
|
end
|
53
49
|
end
|
54
50
|
|
55
|
-
desc 'Describe backup here'
|
56
|
-
arg_name 'Describe arguments to backup here'
|
57
|
-
command :backup do |c|
|
58
|
-
c.action do |_global_options, _options, _args|
|
59
|
-
puts 'backup command ran'
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
desc 'Describe convert here'
|
64
|
-
arg_name 'Describe arguments to convert here'
|
65
|
-
command :convert do |c|
|
66
|
-
c.action do |_global_options, _options, _args|
|
67
|
-
puts 'convert command ran'
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
desc 'Describe diff here'
|
72
|
-
arg_name 'Describe arguments to diff here'
|
73
|
-
command :diff do |c|
|
74
|
-
c.action do |_global_options, _options, _args|
|
75
|
-
puts 'diff command ran'
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
desc 'Describe generate here'
|
80
|
-
arg_name 'Describe arguments to generate here'
|
81
|
-
command :generate do |c|
|
82
|
-
c.action do |_global_options, _options, _args|
|
83
|
-
puts 'generate command ran'
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
desc 'Describe provision here'
|
88
|
-
arg_name 'Describe arguments to provision here'
|
89
|
-
command :provision do |c|
|
90
|
-
c.action do |_global_options, _options, _args|
|
91
|
-
puts 'provision command ran'
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
desc 'Describe remove here'
|
96
|
-
arg_name 'Describe arguments to remove here'
|
97
|
-
command :remove do |c|
|
98
|
-
c.action do |_global_options, _options, _args|
|
99
|
-
puts 'remove command ran'
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
desc 'Describe restore here'
|
104
|
-
arg_name 'Describe arguments to restore here'
|
105
|
-
command :restore do |c|
|
106
|
-
c.action do |_global_options, _options, _args|
|
107
|
-
puts 'restore command ran'
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
desc 'Describe write here'
|
112
|
-
arg_name 'Describe arguments to write here'
|
113
|
-
command :write do |c|
|
114
|
-
c.action do |_global_options, _options, _args|
|
115
|
-
puts 'write command ran'
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
51
|
pre do |_global, _command, options, args|
|
120
52
|
path = args.first
|
121
53
|
exit_now!('path must be provided') if path.nil? || path.empty?
|
122
|
-
options[:catacomb] = Vaulty
|
123
|
-
end
|
124
|
-
|
125
|
-
post do |global, command, options, args|
|
126
|
-
# Post logic here
|
127
|
-
# Use skips_post before a command to skip this
|
128
|
-
# block on that command only
|
54
|
+
options[:catacomb] = Vaulty.catacomb.new(path)
|
129
55
|
end
|
130
56
|
|
131
57
|
on_error do |_exception|
|
data/lib/vaulty/output/banner.rb
CHANGED
@@ -3,10 +3,10 @@ module Vaulty
|
|
3
3
|
class Banner
|
4
4
|
attr_reader :msg, :prompt, :color
|
5
5
|
|
6
|
-
def initialize(msg, color: :blue)
|
6
|
+
def initialize(msg, color: :blue, prompt:)
|
7
7
|
@msg = msg
|
8
8
|
@color = "on_#{color}".to_sym
|
9
|
-
@prompt =
|
9
|
+
@prompt = prompt
|
10
10
|
end
|
11
11
|
|
12
12
|
def render
|
data/lib/vaulty/output/table.rb
CHANGED
@@ -20,16 +20,16 @@ module Vaulty
|
|
20
20
|
DEFAULT_HEADER = %w(Key Value).freeze
|
21
21
|
attr_reader :data, :prompt, :header
|
22
22
|
|
23
|
-
def initialize(data, header: DEFAULT_HEADER, highlight: {})
|
23
|
+
def initialize(data, header: DEFAULT_HEADER, highlight: {}, prompt:)
|
24
24
|
@data = data
|
25
|
-
@prompt = TTY::Prompt.new
|
26
25
|
@filter = HighlightFilter.new(**highlight)
|
27
26
|
@header = header
|
27
|
+
@prompt = prompt
|
28
28
|
end
|
29
29
|
|
30
30
|
def render
|
31
31
|
table = TTY::Table.new(data, header: header, style: :markdown)
|
32
|
-
renderer = table.render(:ascii) do |render|
|
32
|
+
renderer = table.render(:ascii, column_widths: [30, 80]) do |render|
|
33
33
|
render.padding = [0, 2, 0, 2]
|
34
34
|
render.filter = @filter
|
35
35
|
end
|
data/lib/vaulty/output/tree.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
module Vaulty
|
2
2
|
module Output
|
3
3
|
class Tree
|
4
|
-
attr_reader :tree, :
|
4
|
+
attr_reader :tree, :prompt
|
5
5
|
|
6
|
-
def initialize(tree,
|
6
|
+
def initialize(tree, prompt:)
|
7
7
|
@tree = tree
|
8
|
-
@
|
9
|
-
@dir_icon = dir_icon
|
8
|
+
@prompt = prompt
|
10
9
|
end
|
11
10
|
|
12
11
|
def render
|
13
12
|
output_tree = flatten_tree(Array(tree), 0)
|
14
|
-
|
13
|
+
rendered_tree = Hirb::Helpers::Tree.render(output_tree,
|
15
14
|
type: :directory,
|
16
15
|
multi_line_nodes: true)
|
16
|
+
prompt.say(rendered_tree)
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.render(*args)
|
@@ -35,12 +35,12 @@ module Vaulty
|
|
35
35
|
def format_values(values, level)
|
36
36
|
Array(values).map do |value|
|
37
37
|
key_value = "#{value.key}:#{value.value}"
|
38
|
-
{ value: [
|
38
|
+
{ value: ["\u{1F511}", key_value].compact.join(' '), level: level }
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
42
|
def format_node(value, level)
|
43
|
-
{ value: [
|
43
|
+
{ value: ["\u{1F4C2}", value].compact.join(' '), level: level }
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
data/lib/vaulty/vault_tree.rb
CHANGED
@@ -51,7 +51,7 @@ module Vaulty
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def find_subtree(base_path)
|
54
|
-
list =
|
54
|
+
list = Vaulty.catacomb.list(base_path)
|
55
55
|
list.map do |folder|
|
56
56
|
file_or_folder = [base_path, folder].join('/')
|
57
57
|
values = read_values_for(file_or_folder)
|
@@ -64,7 +64,7 @@ module Vaulty
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def read_values_for(path)
|
67
|
-
|
67
|
+
Vaulty.catacomb.read(path).map do |key, value|
|
68
68
|
Value.new(key: key, value: value)
|
69
69
|
end
|
70
70
|
end
|
data/lib/vaulty/version.rb
CHANGED
data/lib/vaulty.rb
CHANGED
@@ -16,8 +16,36 @@ require 'vaulty/vault_tree'
|
|
16
16
|
|
17
17
|
require 'vaulty/cli/command'
|
18
18
|
require 'vaulty/cli/add'
|
19
|
+
require 'vaulty/cli/delete'
|
19
20
|
require 'vaulty/cli/tree'
|
20
21
|
|
21
22
|
require 'vaulty/output/banner'
|
22
23
|
require 'vaulty/output/table'
|
23
24
|
require 'vaulty/output/tree'
|
25
|
+
|
26
|
+
module Vaulty
|
27
|
+
# This error is raised when we try to show / operate on a path
|
28
|
+
# that does not contain anything
|
29
|
+
# @see GLI::CustomExit
|
30
|
+
#
|
31
|
+
class EmptyPath < GLI::CustomExit
|
32
|
+
# @param [String] path
|
33
|
+
def initialize(path)
|
34
|
+
super("Path #{path.inspect} contains nothing", -1)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# Returns the prompt instance so it's always the same instance
|
39
|
+
# @return [TTY::Prompt]
|
40
|
+
#
|
41
|
+
def self.prompt
|
42
|
+
@prompt ||= TTY::Prompt.new
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns the Catacomb class
|
46
|
+
# @return [Vaulty::Catacomb]
|
47
|
+
#
|
48
|
+
def self.catacomb
|
49
|
+
@catacomb ||= Vaulty::Catacomb
|
50
|
+
end
|
51
|
+
end
|
data/vaulty.gemspec
CHANGED
@@ -17,16 +17,17 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
18
|
f.match(%r{^(test|spec|features)/})
|
19
19
|
end
|
20
|
+
|
20
21
|
s.bindir = 'bin'
|
21
22
|
s.require_paths << 'lib'
|
22
23
|
s.executables << 'vaulty'
|
23
24
|
|
24
|
-
s.add_dependency '
|
25
|
+
s.add_dependency 'hashdiff', '~> 0.3.0'
|
25
26
|
s.add_dependency 'hirb', '~> 0.7.3'
|
26
27
|
s.add_dependency 'tty', '~> 0.7.0'
|
27
|
-
s.add_dependency '
|
28
|
+
s.add_dependency 'vault', '~> 0.10.1'
|
28
29
|
|
29
30
|
s.add_development_dependency 'rake'
|
30
31
|
|
31
|
-
s.add_runtime_dependency 'gli', '2.
|
32
|
+
s.add_runtime_dependency 'gli', '2.17.0'
|
32
33
|
end
|
data/vaulty.rdoc
CHANGED
@@ -1,25 +1,13 @@
|
|
1
|
-
== vaulty -
|
1
|
+
== vaulty - Vault CLI on steriods
|
2
2
|
|
3
3
|
v0.0.1
|
4
4
|
|
5
5
|
=== Global Options
|
6
|
-
=== -f|--flagname The name of the argument
|
7
|
-
|
8
|
-
Describe some flag here
|
9
|
-
|
10
|
-
[Default Value] the default
|
11
|
-
|
12
|
-
|
13
6
|
=== --help
|
14
7
|
Show this message
|
15
8
|
|
16
9
|
|
17
10
|
|
18
|
-
=== -s|--[no-]switch
|
19
|
-
Describe some switch here
|
20
|
-
|
21
|
-
|
22
|
-
|
23
11
|
=== --version
|
24
12
|
Display the program version
|
25
13
|
|
@@ -31,33 +19,24 @@ Add a new key/value to the given `PATH`, multiple `key:value` can be provided
|
|
31
19
|
|
32
20
|
|
33
21
|
===== Options
|
34
|
-
===== --
|
22
|
+
===== --file|-f key:/path/file.ext
|
35
23
|
|
36
|
-
Key/
|
24
|
+
Key/File to be uploaded
|
37
25
|
|
38
26
|
[Default Value] None
|
39
27
|
|
40
28
|
|
41
|
-
|
42
|
-
Describe backup here
|
29
|
+
===== --secret|-s key:secret
|
43
30
|
|
31
|
+
Key/Values to save
|
44
32
|
|
45
|
-
|
46
|
-
Describe convert here
|
33
|
+
[Default Value] None
|
47
34
|
|
48
35
|
|
49
36
|
==== Command: <tt>delete </tt>
|
50
37
|
Deletes everything under the path recursively
|
51
38
|
|
52
39
|
|
53
|
-
==== Command: <tt>diff Describe arguments to diff here</tt>
|
54
|
-
Describe diff here
|
55
|
-
|
56
|
-
|
57
|
-
==== Command: <tt>generate Describe arguments to generate here</tt>
|
58
|
-
Describe generate here
|
59
|
-
|
60
|
-
|
61
40
|
==== Command: <tt>help command</tt>
|
62
41
|
Shows a list of commands or help for one command
|
63
42
|
|
@@ -68,23 +47,7 @@ List commands one per line, to assist with shell completion
|
|
68
47
|
|
69
48
|
|
70
49
|
|
71
|
-
==== Command: <tt>provision Describe arguments to provision here</tt>
|
72
|
-
Describe provision here
|
73
|
-
|
74
|
-
|
75
|
-
==== Command: <tt>remove Describe arguments to remove here</tt>
|
76
|
-
Describe remove here
|
77
|
-
|
78
|
-
|
79
|
-
==== Command: <tt>restore Describe arguments to restore here</tt>
|
80
|
-
Describe restore here
|
81
|
-
|
82
|
-
|
83
50
|
==== Command: <tt>tree </tt>
|
84
51
|
Represents the path as a tree
|
85
52
|
|
86
53
|
|
87
|
-
==== Command: <tt>write Describe arguments to write here</tt>
|
88
|
-
Describe write here
|
89
|
-
|
90
|
-
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vaulty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Stevens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: hashdiff
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: hirb
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +53,19 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.7.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: vault
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.10.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.10.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
89
|
+
version: 2.17.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.
|
96
|
+
version: 2.17.0
|
97
97
|
description: Vault CLI that is based on the Vault Ruby gem
|
98
98
|
email:
|
99
99
|
- jan@playpass.be
|
@@ -102,6 +102,7 @@ executables:
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
+
- ".coveralls.yml"
|
105
106
|
- ".gitignore"
|
106
107
|
- ".rspec"
|
107
108
|
- ".rubocop.yml"
|
@@ -147,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
148
|
version: '0'
|
148
149
|
requirements: []
|
149
150
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.5.2.1
|
151
152
|
signing_key:
|
152
153
|
specification_version: 4
|
153
154
|
summary: A description of your project
|