baboon 1.0.9 → 1.5.5

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.
@@ -1,11 +0,0 @@
1
- application: Your Application Name
2
- repository: git@github.com:your_project.git
3
- deploy_path: /path/to/project
4
- deploy_user: rails
5
- deploy_branch: master
6
-
7
- environments:
8
- production:
9
- servers: [192.168.1.100, 192.168.1.101]
10
- staging:
11
- servers: [10.0.0.1, 10.0.0.2]
@@ -1,115 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Baboon::Configuration do
4
- describe 'configuration object should respond accordingly if not configured' do
5
- before do
6
- Baboon.configure do |config|
7
- config.application = nil
8
- config.repository = nil
9
- config.deploy_path = nil
10
- config.deploy_user = nil
11
- config.branch = nil
12
- config.rails_env = nil
13
- config.servers = nil
14
- end
15
- end
16
-
17
- context 'when nothing is given for application' do
18
- it 'should not be nil' do
19
- Baboon.configuration.application.should == nil
20
- end
21
- end
22
-
23
- context 'when nothing is given for repository' do
24
- it 'should not be nil' do
25
- Baboon.configuration.repository.should == nil
26
- end
27
- end
28
-
29
- context 'when nothing is given for deploy_path' do
30
- it 'should not be nil' do
31
- Baboon.configuration.deploy_path.should == nil
32
- end
33
- end
34
-
35
- context 'when nothing is given for deploy_user' do
36
- it 'should not be nil' do
37
- Baboon.configuration.deploy_user.should == nil
38
- end
39
- end
40
-
41
- context 'when nothing is given for branch' do
42
- it 'should not be nil' do
43
- Baboon.configuration.branch.should == nil
44
- end
45
- end
46
-
47
- context 'when nothing is given for rails_env' do
48
- it 'should not be nil' do
49
- Baboon.configuration.rails_env.should == nil
50
- end
51
- end
52
-
53
- context 'when nothing is given for servers' do
54
- it 'should not be nil' do
55
- Baboon.configuration.servers.should == nil
56
- end
57
- end
58
- end
59
-
60
- describe 'configuration object should respond accordingly if is configured' do
61
- before do
62
- Baboon.configure do |config|
63
- config.application = 'console'
64
- config.repository = 'git@github.com:128lines/console.fm.git'
65
- config.deploy_path = '/home/rails/console.fm/'
66
- config.deploy_user = :rails
67
- config.branch = :master
68
- config.rails_env = :production
69
- config.servers = ['server_1', 'server_2']
70
- end
71
- end
72
-
73
- context 'when a application is assigned' do
74
- it 'should not be nil' do
75
- Baboon.configuration.application.should eq('console')
76
- end
77
- end
78
-
79
- context 'when a repository is assigned' do
80
- it 'should not be nil' do
81
- Baboon.configuration.repository.should eq('git@github.com:128lines/console.fm.git')
82
- end
83
- end
84
-
85
- context 'when a deploy_path is assigned' do
86
- it 'should not be nil' do
87
- Baboon.configuration.deploy_path.should eq('/home/rails/console.fm/')
88
- end
89
- end
90
-
91
- context 'when a deploy_user is assigned' do
92
- it 'should not be nil' do
93
- Baboon.configuration.deploy_user.should eq(:rails)
94
- end
95
- end
96
-
97
- context 'when a branch is assigned' do
98
- it 'should not be nil' do
99
- Baboon.configuration.branch.should eq(:master)
100
- end
101
- end
102
-
103
- context 'when a rails_env is assigned' do
104
- it 'should not be nil' do
105
- Baboon.configuration.rails_env.should eq(:production)
106
- end
107
- end
108
-
109
- context 'when a server is assigned' do
110
- it 'should not be nil' do
111
- Baboon.configuration.servers.should eq(['server_1', 'server_2'])
112
- end
113
- end
114
- end
115
- end