foreplay 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1011f8fc3f4b38d23deb180f1042f97bc451eef
4
- data.tar.gz: ba9f94621408edccd70ea3f33ef252b26f981235
3
+ metadata.gz: bc0ba1399ad4f28e7219e76759f9b64d0c164607
4
+ data.tar.gz: fa605e77b3ca9d210a323d3cb110128d026ba1c3
5
5
  SHA512:
6
- metadata.gz: 09bec8f0269b31fbf1147a7af311ad712575184f51dca62b5fdc515f85909c79f9d55808c6f1b9f57ea607a3b8e0bef52a56f20dc989e27ca5b3ce85d40cedd5
7
- data.tar.gz: 36d6112fd6834306e48325d125e417a5041a01bec48601065118a41fd739c8c37186a41c9768ef835adc2291f3ba8542d95168be153d3896daef623f755436f1
6
+ metadata.gz: ca58f54169c67af0cdb65703c890a2f26167fefcec2696d2b3d617d4efed43c39ec9332107b17638a3b4a571d9df4c8108085d60ae1765404e3c2c6226ce372d
7
+ data.tar.gz: e3da00b342566bb1c00a43bf07e4fec47ef356ff991ce89f8b3adc9c29053babd34f4b5bc7699b0fcd2410896037834748638c83894ccd3a1b94d32cd4547fa7
@@ -6,25 +6,22 @@ Feature: check
6
6
  Scenario: Check configuration
7
7
  When I run `foreplay check`
8
8
  Then the output should contain:
9
- """
10
- ERROR: "foreplay check" was called with no arguments
11
- Usage: "foreplay check ENVIRONMENT"
12
- """
9
+ """
10
+ foreplay check requires at least 1 argument: "foreplay check ENVIRONMENT".
11
+ """
13
12
 
14
13
  Scenario: Check configuration parameters - invalid parameter
15
14
  When I run `foreplay check test --invalid xyz`
16
15
  Then the output should contain:
17
- """
18
- ERROR: "foreplay check" was called with arguments ["test", "--invalid", "xyz"]
19
- Usage: "foreplay check ENVIRONMENT"
16
+ """
17
+ foreplay check requires at least 1 argument: "foreplay check ENVIRONMENT".
20
18
  """
21
19
 
22
20
  Scenario: Check configuration parameters - short invalid parameter
23
21
  When I run `foreplay check test -x xyz`
24
22
  Then the output should contain:
25
23
  """
26
- ERROR: "foreplay check" was called with arguments ["test", "-x", "xyz"]
27
- Usage: "foreplay check ENVIRONMENT"
24
+ foreplay check requires at least 1 argument: "foreplay check ENVIRONMENT".
28
25
  """
29
26
 
30
27
  Scenario: Check configuration parameters - no config file
@@ -6,25 +6,22 @@ Feature: deploy
6
6
  Scenario: No arguments
7
7
  When I run `foreplay deploy`
8
8
  Then the output should contain:
9
- """
10
- ERROR: "foreplay deploy" was called with no arguments
11
- Usage: "foreplay deploy ENVIRONMENT"
12
- """
9
+ """
10
+ foreplay deploy requires at least 1 argument: "foreplay deploy ENVIRONMENT".
11
+ """
13
12
 
14
13
  Scenario: invalid parameter
15
14
  When I run `foreplay deploy test --invalid xyz`
16
15
  Then the output should contain:
17
- """
18
- ERROR: "foreplay deploy" was called with arguments ["test", "--invalid", "xyz"]
19
- Usage: "foreplay deploy ENVIRONMENT"
20
- """
16
+ """
17
+ foreplay deploy requires at least 1 argument: "foreplay deploy ENVIRONMENT".
18
+ """
21
19
 
22
20
  Scenario: short invalid parameter
23
21
  When I run `foreplay deploy test -x xyz`
24
22
  Then the output should contain:
25
23
  """
26
- ERROR: "foreplay deploy" was called with arguments ["test", "-x", "xyz"]
27
- Usage: "foreplay deploy ENVIRONMENT"
24
+ foreplay deploy requires at least 1 argument: "foreplay deploy ENVIRONMENT".
28
25
  """
29
26
 
30
27
  Scenario: no config file
@@ -39,8 +39,7 @@ Feature: Setup
39
39
  | config/foreplay.yml |
40
40
  And the output should contain:
41
41
  """
42
- ERROR: "foreplay setup" was called with arguments ["-x", "abc"]
43
- Usage: "foreplay setup"
42
+ foreplay setup should have no arguments: "foreplay setup".
44
43
  """
45
44
 
46
45
  Scenario: Setup invalid option
@@ -49,8 +48,7 @@ Feature: Setup
49
48
  | config/foreplay.yml |
50
49
  And the output should contain:
51
50
  """
52
- ERROR: "foreplay setup" was called with arguments ["--xyz", "abc"]
53
- Usage: "foreplay setup"
51
+ foreplay setup should have no arguments: "foreplay setup".
54
52
  """
55
53
 
56
54
  Scenario: Setup invalid pool option type
data/foreplay.gemspec CHANGED
@@ -3,31 +3,31 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'foreplay/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "foreplay"
6
+ spec.name = 'foreplay'
7
7
  spec.version = Foreplay::VERSION
8
- spec.authors = ["Xenapto"]
9
- spec.email = ["developers@xenapto.com"]
8
+ spec.authors = ['Xenapto']
9
+ spec.email = ['developers@xenapto.com']
10
10
  spec.description = %q{Deploying Rails projects to Ubuntu using Foreman}
11
11
  spec.summary = %q{Example: foreplay push to production}
12
- spec.homepage = "https://github.com/Xenapto/foreplay"
13
- spec.license = "MIT"
12
+ spec.homepage = 'https://github.com/Xenapto/foreplay'
13
+ spec.license = 'MIT'
14
14
 
15
15
  spec.files = `git ls-files`.split($/)
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features|coverage)/})
18
- spec.require_paths = ["lib"]
18
+ spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'activesupport'
21
- spec.add_dependency 'colorize'
22
- spec.add_dependency 'foreman'
23
- spec.add_dependency 'net-ssh-shell'
24
- spec.add_dependency 'thor'
20
+ spec.add_runtime_dependency 'activesupport', '~> 4.1.1'
21
+ spec.add_runtime_dependency 'colorize', '~> 0.7.3'
22
+ spec.add_runtime_dependency 'foreman', '~> 0.67.0'
23
+ spec.add_runtime_dependency 'net-ssh-shell', '~> 0.2.0'
24
+ #spec.add_runtime_dependency 'thor', '~> 0.19.1' # Dependency of foreman anyway
25
25
 
26
- spec.add_development_dependency "bundler"
27
- spec.add_development_dependency "rake"
28
- spec.add_development_dependency "rspec"
29
- spec.add_development_dependency "cucumber"
30
- spec.add_development_dependency "aruba"
31
- spec.add_development_dependency "gem-release"
32
- spec.add_development_dependency "simplecov"
26
+ spec.add_development_dependency 'bundler', '~> 1.6.2'
27
+ spec.add_development_dependency 'rake', '~> 10.3.2'
28
+ spec.add_development_dependency 'rspec', '~> 2.14.1'
29
+ spec.add_development_dependency 'cucumber', '~> 1.3.15'
30
+ spec.add_development_dependency 'aruba', '~> 0.5.4'
31
+ spec.add_development_dependency 'gem-release', '~> 0.7.3'
32
+ spec.add_development_dependency 'simplecov', '~> 0.8.2'
33
33
  end
@@ -162,6 +162,10 @@ module Foreplay
162
162
  :commentary => 'Using bundler to install the required gems in deployment mode' },
163
163
  { :command => 'sudo ln -f `which foreman` /usr/bin/foreman || echo Using default version of foreman',
164
164
  :commentary => 'Setting the current version of foreman to be the default' },
165
+ { :command => 'echo HOME="$HOME" >> .env',
166
+ :commentary => 'Adding home path to .env (foreplay issue #443)' },
167
+ { :command => 'echo SHELL="$SHELL" >> .env',
168
+ :commentary => 'Adding shell path to .env (foreplay issue #443)' },
165
169
  { :command => 'echo PATH="$PATH:`which bundle`" >> .env',
166
170
  :commentary => 'Adding bundler path to .env (foreplay issue #443)' },
167
171
  { :command => 'sudo foreman export upstart /etc/init',
@@ -1,3 +1,3 @@
1
1
  module Foreplay
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,183 +1,169 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-20 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 4.1.1
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: '0'
26
+ version: 4.1.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colorize
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.7.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.7.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: foreman
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.67.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.67.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: net-ssh-shell
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.2.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
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: thor
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: 0.2.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: bundler
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ">="
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '0'
75
+ version: 1.6.2
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ">="
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '0'
82
+ version: 1.6.2
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ">="
87
+ - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '0'
89
+ version: 10.3.2
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ">="
94
+ - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '0'
96
+ version: 10.3.2
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: rspec
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - ">="
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '0'
103
+ version: 2.14.1
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - ">="
108
+ - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '0'
110
+ version: 2.14.1
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: cucumber
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - ">="
115
+ - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: '0'
117
+ version: 1.3.15
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - ">="
122
+ - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '0'
124
+ version: 1.3.15
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: aruba
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ">="
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '0'
131
+ version: 0.5.4
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ">="
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '0'
138
+ version: 0.5.4
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: gem-release
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - ">="
143
+ - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: '0'
145
+ version: 0.7.3
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - ">="
150
+ - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: '0'
152
+ version: 0.7.3
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: simplecov
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - ">="
157
+ - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '0'
159
+ version: 0.8.2
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - ">="
164
+ - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '0'
166
+ version: 0.8.2
181
167
  description: Deploying Rails projects to Ubuntu using Foreman
182
168
  email:
183
169
  - developers@xenapto.com