bog 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. checksums.yaml +13 -5
  2. data/.travis.yml +2 -2
  3. data/README.md +6 -5
  4. data/bin/bog +6 -0
  5. data/lib/bog/version.rb +1 -1
  6. metadata +18 -18
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ff3dbbc0a6495278bc62299ad4dbe7c0ee196bd3
4
- data.tar.gz: 00fa54bcd962dcce48d0d6cd701759aab1546fc6
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTk4OGFhNTdmMGZhNDE5YTc5MTk4ZGFlZWU5MzcxMTI2MTcxYWZjNg==
5
+ data.tar.gz: !binary |-
6
+ NDZiODkyOTZlYTdmYmE1OWJmOGE4OWRlYzRiZTQ2ZDcwMWU2MmJiYg==
5
7
  SHA512:
6
- metadata.gz: 6b914aac97792a7a87a3524191dd08f64e9f870137688101d95c8eaddcfaca44a661993c0ac3cf6614e9917597fac4843f9bcc3207a859d3acc88079d0f5be80
7
- data.tar.gz: be32ca99fbb4930ff9152f575cd4e2f5708bc61b3dfd89f8cacf8c84d5d1b857e5ae52501a3528d1d8b6f95b4aac8489ed17241b7f07ea2bcfce32f2278b65d0
8
+ metadata.gz: !binary |-
9
+ MmE3ZjkwYzg2ZjUyNTE0NDliYzEwNDc0ZjZmYTc0MTA1N2NhZjU5MjhjNjNk
10
+ MTdlYzZjOWEyOTExZGUxNTNlODU2ZmZlN2VmYzIwZTU1ZjcyNWMxMDUzOGI5
11
+ ZTBjNGQ2NGY2ZjU5NzljOGVlOTM4ZGRjZTg0NmM2Yzg0Mjg3NGU=
12
+ data.tar.gz: !binary |-
13
+ ZmQxZDVkZjU1ODljNTQ4Y2RhZTA5OTA3NjNiNGYzYzVkYmY5NzBkYTA3M2Yw
14
+ YTFmMGNmNzBlYTg2Njg3OTc5ZGM3MDJhY2ZmMGMzNGRjZGZmMWI1ZmRlNjYy
15
+ ODRhMDdmMjNhNzkyOWQ3YWJiOGQzMjZhN2JmOWRlMTdjMWI0ZGQ=
@@ -7,11 +7,11 @@ rvm:
7
7
  - 2.2.2
8
8
  deploy:
9
9
  provider: rubygems
10
- api_key:
11
- secure: McztX6P5ft3udj4P3S0mj2rA6rBPR75E+G+UQIO7P/Ay3Hy3zVoYMUK7lYWGnkdz3wRqdGSzRZ+leKnyg9mfOVWds3zT2Baoa/PLZzNis6JJk0HgcX8HsUZMnM9w24bCPVH/17drQhiy4iNXVDONv4PzakGdGgLmVl9q8vqU++o=
12
10
  gem: bog
13
11
  on:
14
12
  tags: true
15
13
  all_branches: true
16
14
  repo: opsunit/bog
17
15
  ruby: 1.9.3
16
+ api_key:
17
+ secure: u8rdkyxcXSPyzsCmUO69HaDNsziOQ/Y+6E0hZwj4NKwZdu/BfP6ictr3gpLfh1Nw509PasB1mEWxpeBWOcZDInLzNfJOj9xvXk2UxxdRqnzNPfsvEQsvoYwZETVTrJqMKoHuIQH5SGcz++Ko3ISrg8fbVGnD24vmjNI7DXmR37Q=
data/README.md CHANGED
@@ -51,7 +51,7 @@ $ bog myclient exec knife client list # switch back to previous profile
51
51
  ```
52
52
 
53
53
  ## How it works
54
- `bog init myclient --aws` will create
54
+ `bog init myclient` will create
55
55
 
56
56
  ```
57
57
  .bog
@@ -59,12 +59,13 @@ $ bog myclient exec knife client list # switch back to previous profile
59
59
  ├── plugins
60
60
  └── profiles
61
61
  └── myclient
62
- └── .aws
63
62
  ```
64
- If you passed a switch such as `--aws` then the correctly named configuration files will be present and populated. Otherwise you
65
- are free to include whatever you choose.
63
+ `bog` will never touch your `~/.aws` and similar directories. You will need to:
66
64
 
67
- `bog` will never touch your `~/.aws` and similar directories. You will need to symlink these to `~/.bog/current/.aws` (as appropriate) in order to have bog work.
65
+ * populate `~/.bog/profiles/myclient/` with dotfiles and directories for that profile.
66
+ * symlink the directory the tool would look for: `ln -s ~/.bog/current/.aws ~/.aws`
67
+
68
+ When profiles are switched the `~/.bog/current` symlink is repointed.
68
69
 
69
70
  ### Roaming profiles
70
71
  By sourcing `~/.bog/bog.sh` into your shell environment and placing a file called `.bog-profile` into one or more directories you can take advantage of roaming profiles. In short, when `bog` detects such a file it'll automatically change your current profile to that given in the dotfile. This enables you to easily work with per-project profiles, for example.
data/bin/bog CHANGED
@@ -13,12 +13,18 @@ unless command == 'exec'
13
13
  banner 'Usage: bog PROFILE [COMMAND] [options]'
14
14
  on 'h', 'help', 'Display this message'
15
15
  on 'a', 'aws', 'When passed to the \'init\' subcommand, prompt for AWS credentials'
16
+ on 'v', 'version', 'Display version'
16
17
  end
17
18
 
18
19
  if @options.help?
19
20
  puts @options
20
21
  exit 0
21
22
  end
23
+
24
+ if @options.version?
25
+ puts Bog::VERSION
26
+ exit 0
27
+ end
22
28
  else
23
29
  @options = { :commands => ARGV[2..-1].join(' ') }
24
30
  end
@@ -1,3 +1,3 @@
1
1
  module Bog
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-23 00:00:00.000000000 Z
11
+ date: 2015-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: slop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.4'
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
68
  version: '3.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: require_all
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.3'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.3'
83
83
  description: A tool for managing cloud API and configuration management credentials.
@@ -89,9 +89,9 @@ executables:
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - ".gitignore"
93
- - ".rspec"
94
- - ".travis.yml"
92
+ - .gitignore
93
+ - .rspec
94
+ - .travis.yml
95
95
  - Gemfile
96
96
  - LICENSE
97
97
  - README.md
@@ -122,17 +122,17 @@ require_paths:
122
122
  - lib
123
123
  required_ruby_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - ">="
125
+ - - ! '>='
126
126
  - !ruby/object:Gem::Version
127
127
  version: 1.9.3
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ">="
130
+ - - ! '>='
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.2.2
135
+ rubygems_version: 2.4.5
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: A tool for managing cloud API and configuration management credentials.