bog 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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZTQ0ZTBjZTE0NjNlOWIzMmNiMGJmNzExOGMyNTY2OWU0NTA5NjE5ZQ==
5
- data.tar.gz: !binary |-
6
- ODg0MzEwYWExZjQxZTFjYWRmZDUzM2Y5MjFkMjMwYzA0NDFiNjZlNw==
2
+ SHA1:
3
+ metadata.gz: 85933dcb4b68ed627db038e68d1fd6c3ae4ab9bd
4
+ data.tar.gz: d5496f15cdbb160fd97ef24628024b443db8228a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NjNkZDViNjAxNDYwZjYwZDUyZDAzZjkxZjY2NDQ1NTBmNTg5ZGM2ZTkzNWRk
10
- YTM1N2Q5NGVkNzYwMzE2MTA1Njc0ZjM5MDg5YTI5MWZhOTNiOTFmYWUyYjRh
11
- MmI3NTdlYWY5OTkwMWU1MTE1OTZkODRiYjk2M2NjNjhiMGU1MjY=
12
- data.tar.gz: !binary |-
13
- MmU0OGQ0ZWM1MjhjYTBhMjIyMTliZDdlYzI2ZmFjZTU5YTcxZDk4Njc1NDBi
14
- ZDIxODBkNzM5YjM5MjVmYjYxYWY4ODc0ZTUzY2NiOWRkZTgwNDQwMWY5N2Vh
15
- MjZlYWFmMjk4YjU3ZGVjYmI3NTVhZTJhNGZlNzQxYjBkZDc1ZDk=
6
+ metadata.gz: b27000e89c14373b699ca431736bd16095ce4fce15d718ca5736fe18e9c13627adae141df622f66a46be3eafdcb692c777a484458b0591987c0b381e4363dcd2
7
+ data.tar.gz: 8065ac8228cf9deb1aa52bb950e98dc1993ae61e22851ba7960f0cca910e7c4c42cda50069ac3f19012d7eb5a1d54556c355377eb462e1579aad8d7cfecba111
@@ -1,3 +1,14 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
6
+ deploy:
7
+ provider: rubygems
8
+ api_key:
9
+ secure: fAI2GlU0tCtZVxA80nUjC/1PriviYXb5F3a58wlbpgy0NTWxGgQxvYJOI3pvYCqIRI9CnqP/S3k642n40DomgBThAgi42vkCYKGG50dfaFKzgwu1xMWIGs3DXfsQD2nh7V5SNKncOpy2bo6GRdhPLkroQIy9XwjmAcPsEZ50jbc=
10
+ gem: knife-stencil
11
+ on:
12
+ tags: true
13
+ repo: opsunit/bog
14
+ ruby: 1.9.3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # bog
1
+ # bog [![Build Status](https://travis-ci.org/opsunit/bog.svg?branch=master)](https://travis-ci.org/opsunit/bog)
2
2
 
3
3
  ![OpsUnit Logo][99]
4
4
 
@@ -14,7 +14,6 @@ work with collections of dotfile configurations and to swap between those sets.
14
14
  ## Example
15
15
  ```bash
16
16
  $ bog myclient init --aws --chef # Configure ~/.bog with stubs for AWS and Chef under profile 'myclient'
17
- $ bog myclient init --aws --prompt # Configure with AWS stubs and prompt for credentials
18
17
  Enter your Amazon Secrect Access Key:
19
18
  ...
20
19
  $ bog myclient # Switch to profile 'myclient'
@@ -22,7 +21,6 @@ $ knife client list
22
21
  $ aws s3 ls
23
22
  ...
24
23
  $ bog personal # Switch to another profile
25
- $ bog myclient exec knife environment show # Execute a command in the context of a profile and revert
26
24
  ...
27
25
  ```
28
26
  ## How it works
@@ -37,15 +35,10 @@ $ bog myclient exec knife environment show # Execute a command in the context of
37
35
  ├── .aws
38
36
  └── .chef
39
37
  ```
40
- If you passed `--prompt` then the correctly named configuration files will be present and populated. Otherwise you
38
+ If you passed a switch such as `--aws` then the correctly named configuration files will be present and populated. Otherwise you
41
39
  are free to include whatever you choose.
42
40
 
43
- Within your `$HOME` directory symlinks to the various directories will be made, pointing towards the appropriate directories
44
- under `~/.bog/profiles`. `bog` determines the active profile from the destination of the `~/.bog/current` symlink, although
45
- repointing that symlink will not cause the directories under `$HOME` to be repointed unless `bog profilename` is executed.
46
-
47
- `bog profilename exec command` will swap the dot directories for the profile given into place, execute the command, and then
48
- return to the previous state (`~/.bog/current` is not repointed during this).
41
+ `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.
49
42
 
50
43
  ## Why another dotfile manager
51
44
  There are plenty out there. `bog` aims to fit a modern operational workflow and toolset.
data/bin/bog CHANGED
@@ -27,6 +27,7 @@ if command
27
27
  Object.const_get('Bog').const_get('Command').const_get(command.capitalize).execute(Bog::Profile.find(profile.to_sym), @options)
28
28
  rescue NameError
29
29
  puts "#{command} is not a valid command"
30
+ puts @options
30
31
  exit 1
31
32
  end
32
33
  end
@@ -5,7 +5,7 @@ module Bog
5
5
  class Init
6
6
  def self.execute(profile, options)
7
7
  create_skel
8
- # FIXME: make use of profile.root instead; get passed a Profile object
8
+ # FIXME: make use of profile.path instead; get passed a Profile object
9
9
  profile_path = File.join(File.expand_path('~/.bog'), 'profiles', profile.to_s)
10
10
  Dir.mkdir(profile_path) unless File.directory?(profile_path)
11
11
 
@@ -1,3 +1,3 @@
1
1
  module Bog
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -4,8 +4,4 @@ describe Bog do
4
4
  it 'has a version number' do
5
5
  expect(Bog::VERSION).not_to be nil
6
6
  end
7
-
8
- it 'does something useful' do
9
- expect(false).to eq(true)
10
- end
11
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sam
@@ -42,28 +42,28 @@ dependencies:
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: '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: '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: '0'
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: '0'
69
69
  description: A tool for managing cloud API and configuration management credentials.
@@ -105,17 +105,17 @@ require_paths:
105
105
  - lib
106
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ! '>='
113
+ - - '>='
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.2.2
118
+ rubygems_version: 2.4.1
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: A tool for managing cloud API and configuration management credentials.