cluster-fuck 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -38,10 +38,17 @@ Otherwise, it expects you to be on an EC2 instance and not have to setup credent
38
38
 
39
39
  ## Usage
40
40
 
41
+ ### From Code
42
+
41
43
  ```ruby
42
- reader = ClusterFuck::Reader.new
43
- reader[:stripe][:api_key] loads "config_bucket/amicus_env/stripe and returns the api_key from the hash
44
+ reader = ClusterFuck::Reader.new(:stripe)
45
+ reader.read[:api_key] # loads config_bucket/amicus_env/stripe and returns the api_key from the hash
44
46
  ```
47
+
48
+ #### From the command line
49
+
50
+ See help on bin/clusterfuck
51
+
45
52
  The ClusterFuck::Reader instance will automatically load the configuration for
46
53
  the environment stored in the AMICUS_ENV environment variable on the host.
47
54
 
@@ -11,36 +11,35 @@ program :description, 'Amicus environment-aware configuration manager'
11
11
 
12
12
  command :edit do |c|
13
13
  c.syntax = 'clusterfuck edit [options]'
14
- c.summary = ''
15
- c.description = ''
16
- c.example 'description', 'command example'
17
- c.option '--force', 'force edit even if local file present'
14
+ c.summary = 'Bring up the YAML for key specified in the current AMICUS_ENV or specified AMICUS_ENV in your $editor'
15
+ c.description = 'clusterfuck edit [amicus_env] key'
16
+ c.example 'edit stripe in current AMICUS_ENV', 'clusterfuck edit stripe'
17
+ c.example 'edit stripe in staging AMICUS_ENV', 'clusterfuck edit staging stripe'
18
+ c.option '--force', 'force edit even if local file override present'
18
19
  c.when_called ClusterFuck::Commands::Edit, :run_command
19
20
  end
20
21
 
21
22
  command :create do |c|
22
23
  c.syntax = 'clusterfuck create [options]'
23
- c.summary = ''
24
- c.description = ''
25
- c.example 'description', 'command example'
26
- #c.option '--some-switch', 'Some switch that does something'
24
+ c.summary = 'create a yaml file for your current AMICUS_ENV or specified AMICUS_ENV'
25
+ c.description = 'clusterfuck create [amicus_env] key'
26
+ c.example 'create stripe key in current AMICUS_ENV', 'clusterfuck create stripe'
27
+ c.example 'create stripe key in staging AMICUS_ENV', 'clusterfuck create staging stripe'
27
28
  c.when_called ClusterFuck::Commands::Create, :run_command
28
29
  end
29
30
 
30
31
  command :list do |c|
31
32
  c.syntax = 'clusterfuck list'
32
- c.summary = ''
33
- c.description = ''
34
- c.example 'description', 'command example'
35
- #c.option '--some-switch', 'Some switch that does something'
33
+ c.summary = 'list all keys in the current or specified AMICUS_ENV'
34
+ c.description = 'clusterfuck list [amicus_env]'
35
+ c.example 'list keys in staging AMICUS_ENV', 'clusterfuck list staging'
36
36
  c.when_called ClusterFuck::Commands::List, :run_command
37
37
  end
38
38
 
39
39
  command :override do |c|
40
40
  c.syntax = 'clusterfuck override [options]'
41
- c.summary = ''
41
+ c.summary = 'will copy down the remote config and create a directory clusterfuck/:AMICUS_ENV/:key that will be used by default over the remote'
42
42
  c.description = ''
43
- c.example 'description', 'command example'
44
- #c.option '--some-switch', 'Some switch that does something'
43
+ c.example 'override the staging stripe key in this working directory', 'clusterfuck override staging stripe'
45
44
  c.when_called ClusterFuck::Commands::Override, :run_command
46
45
  end
@@ -12,7 +12,9 @@ Gem::Specification.new do |gem|
12
12
  gem.summary = ""
13
13
  gem.homepage = ""
14
14
 
15
- gem.add_dependency "aws-sdk"
15
+ # we need a big version here, because we rely on a change made in january
16
+ # that was breaking EC2 provider credentials
17
+ gem.add_dependency "aws-sdk", "~> 1.8.1.2"
16
18
  gem.add_dependency "hashie"
17
19
  gem.add_dependency "commander", "~> 4.1.0"
18
20
 
@@ -1,3 +1,3 @@
1
1
  module ClusterFuck
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cluster-fuck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 1.8.1.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 1.8.1.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: hashie
32
32
  requirement: !ruby/object:Gem::Requirement