pushapp 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/pushapp/generators.rb +1 -1
- data/lib/pushapp/remote.rb +1 -1
- data/lib/pushapp/version.rb +1 -1
- data/test/pushapp/cli_test.rb +10 -14
- data/test/pushapp/remote_test.rb +36 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 203e694479ee12c39d1a51a83db5d9831c6cdd21
|
4
|
+
data.tar.gz: 8f58f6ba7c15b8026177a347b7499a878374d444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16b497525286740960f09df567336824e94475e8e5498dc3daf5194701cb8fa7d4e08e0cdd692264896c869bf2d46abfa0b1bdc5ac3bd04c12f13a76f62fa013
|
7
|
+
data.tar.gz: 44f137ed65ecd6862941d7dbd07f2ca6e3ed46bbe09f770e7a89126bd23392e63ec1189042f7a5cd9e97cc78fa695196a33732d7fafa3b6e23393fa5d411d0b5
|
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Simple heroku like deployment system.
|
4
4
|
|
5
|
+
<a href='https://vimeo.com/66528056'><img src="https://f.cloud.github.com/assets/5250/523884/d78a70e0-c0e8-11e2-8569-09e00d48a693.gif" width="512"></a>
|
6
|
+
|
7
|
+
[full video](https://vimeo.com/66528056)
|
8
|
+
|
5
9
|
TODO: notes on blazing
|
6
10
|
|
7
11
|
## Installation
|
data/lib/pushapp/generators.rb
CHANGED
data/lib/pushapp/remote.rb
CHANGED
data/lib/pushapp/version.rb
CHANGED
data/test/pushapp/cli_test.rb
CHANGED
@@ -7,20 +7,16 @@ class CLITest < MiniTest::Unit::TestCase
|
|
7
7
|
@cli = Pushapp::CLI.new
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
11
|
-
@cli.respond_to?
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
@cli.respond_to?
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
@cli.respond_to?
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_it_has_help_method
|
23
|
-
@cli.respond_to? :help
|
10
|
+
def test_cli_protocol
|
11
|
+
assert @cli.respond_to?(:init)
|
12
|
+
assert @cli.respond_to?(:setup)
|
13
|
+
assert @cli.respond_to?(:remotes)
|
14
|
+
assert @cli.respond_to?(:tasks)
|
15
|
+
assert @cli.respond_to?(:trigger)
|
16
|
+
assert @cli.respond_to?(:ssh)
|
17
|
+
assert @cli.respond_to?(:generate)
|
18
|
+
assert @cli.respond_to?(:update_refs)
|
19
|
+
assert @cli.respond_to?(:help)
|
24
20
|
end
|
25
21
|
|
26
22
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'pushapp/remote'
|
3
|
+
|
4
|
+
class RemoteTest < MiniTest::Unit::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
remote_options = {
|
8
|
+
default_option: 5,
|
9
|
+
env: {RAILS_ENV: 'production'}
|
10
|
+
}
|
11
|
+
@remote = Pushapp::Remote.new('test', nil, 'tmp', Pushapp::Config.new, remote_options)
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_task_options_override_remote_options
|
15
|
+
@remote.on :push do
|
16
|
+
rake('test1', task_option: 'task option', env: {RAILS_ENV: 'test'})
|
17
|
+
rake('test2')
|
18
|
+
end
|
19
|
+
|
20
|
+
task1 = @remote.tasks_on(:push).first
|
21
|
+
|
22
|
+
assert task1
|
23
|
+
assert task1.options[:task_option] == 'task option'
|
24
|
+
assert task1.options[:default_option] == 5
|
25
|
+
assert task1.options[:env][:RAILS_ENV] == 'test'
|
26
|
+
|
27
|
+
task2 = @remote.tasks_on(:push).last
|
28
|
+
|
29
|
+
assert task2
|
30
|
+
assert task2.options[:task_option] == nil
|
31
|
+
assert task2.options[:default_option] == 5
|
32
|
+
assert task2.options[:env][:RAILS_ENV] == 'production'
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Korolev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- test/pushapp/config_test.rb
|
138
138
|
- test/pushapp/git_test.rb
|
139
139
|
- test/pushapp/pipe_test.rb
|
140
|
+
- test/pushapp/remote_test.rb
|
140
141
|
- test/pushapp_test.rb
|
141
142
|
- test/test_helper.rb
|
142
143
|
homepage: https://github.com/anjlab/pushapp
|
@@ -169,5 +170,6 @@ test_files:
|
|
169
170
|
- test/pushapp/config_test.rb
|
170
171
|
- test/pushapp/git_test.rb
|
171
172
|
- test/pushapp/pipe_test.rb
|
173
|
+
- test/pushapp/remote_test.rb
|
172
174
|
- test/pushapp_test.rb
|
173
175
|
- test/test_helper.rb
|