webbynode 0.2.5.beta2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of webbynode might be problematic. Click here for more details.
- data/Manifest +10 -3
- data/Rakefile +7 -5
- data/changelog.rdoc +83 -0
- data/lib/templates/backup +1 -1
- data/lib/webbynode/command.rb +3 -1
- data/lib/webbynode/commands/add_key.rb +2 -2
- data/lib/webbynode/commands/addons.rb +84 -0
- data/lib/webbynode/commands/init.rb +13 -1
- data/lib/webbynode/commands/open.rb +21 -0
- data/lib/webbynode/engines/django.rb +5 -0
- data/lib/webbynode/engines/rails3.rb +1 -0
- data/lib/webbynode/git.rb +29 -5
- data/lib/webbynode/io.rb +10 -2
- data/lib/webbynode/option.rb +19 -4
- data/lib/webbynode/parameter.rb +1 -1
- data/lib/webbynode/properties.rb +22 -3
- data/lib/webbynode/remote_executor.rb +14 -4
- data/lib/webbynode/server.rb +1 -1
- data/lib/webbynode/ssh.rb +6 -3
- data/lib/webbynode.rb +3 -1
- data/spec/fixtures/git/config/new_210.11.13.12 +9 -0
- data/spec/fixtures/git/config/new_67.23.79.31 +9 -0
- data/spec/fixtures/git/config/new_67.23.79.32 +9 -0
- data/spec/fixtures/git/config/new_config +9 -0
- data/spec/webbynode/commands/add_key_spec.rb +3 -3
- data/spec/webbynode/commands/addons_spec.rb +181 -0
- data/spec/webbynode/commands/init_spec.rb +33 -0
- data/spec/webbynode/commands/open_spec.rb +31 -0
- data/spec/webbynode/engines/django_spec.rb +12 -0
- data/spec/webbynode/git_spec.rb +59 -23
- data/spec/webbynode/io_spec.rb +28 -4
- data/spec/webbynode/option_spec.rb +13 -2
- data/spec/webbynode/properties_spec.rb +29 -0
- data/spec/webbynode/remote_executor_spec.rb +34 -10
- data/spec/webbynode/server_spec.rb +1 -1
- data/spec/webbynode/ssh_spec.rb +34 -0
- data/webbynode.gemspec +12 -8
- metadata +41 -16
- data/History.txt +0 -4
- data/Manifest.txt +0 -11
- data/devver.rake +0 -174
@@ -2,24 +2,48 @@
|
|
2
2
|
require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'spec_helper')
|
3
3
|
|
4
4
|
describe Webbynode::RemoteExecutor do
|
5
|
-
|
6
|
-
|
5
|
+
let(:ssh) { double('Ssh').as_null_object }
|
6
|
+
subject do
|
7
|
+
Webbynode::RemoteExecutor.new("2.2.2.2").tap do |re|
|
8
|
+
re.stub!(:ssh).and_return(ssh)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "#new" do
|
13
|
+
subject { Webbynode::RemoteExecutor.new("2.1.2.2", 2020) }
|
7
14
|
|
8
|
-
|
9
|
-
|
15
|
+
its(:port) { should == 2020 }
|
16
|
+
|
17
|
+
it "takes an optional port as parameter" do
|
18
|
+
Webbynode::Ssh.should_receive(:new).with("2.1.2.2", 2020).and_return(ssh)
|
19
|
+
subject.exec "hello mom", false, false
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe '#remote_home' do
|
24
|
+
it "returns the home folder for the git user" do
|
25
|
+
subject.should_receive(:exec).with('pwd').and_return("/var/rapp\n")
|
26
|
+
subject.remote_home.should == '/var/rapp'
|
27
|
+
end
|
10
28
|
end
|
11
29
|
|
12
30
|
describe "#exec" do
|
13
|
-
it "
|
14
|
-
|
15
|
-
|
31
|
+
it "raises a CommandError when connection is refused" do
|
32
|
+
ssh.should_receive(:execute).and_raise(Errno::ECONNREFUSED)
|
33
|
+
lambda { subject.exec "something" }.should raise_error(Webbynode::Command::CommandError,
|
34
|
+
"Could not connect to 2.2.2.2. Please check your settings and your network connection and try again.")
|
35
|
+
end
|
36
|
+
|
37
|
+
it "executes the raw command on the server" do
|
38
|
+
ssh.should_receive(:execute).with("the same string I pass", false, false)
|
39
|
+
subject.exec "the same string I pass"
|
16
40
|
end
|
17
41
|
end
|
18
42
|
|
19
43
|
describe "#create_folder" do
|
20
|
-
it "
|
21
|
-
|
22
|
-
|
44
|
+
it "creates the folder on the server" do
|
45
|
+
ssh.should_receive(:execute).with("mkdir -p /var/new_folder")
|
46
|
+
subject.create_folder "/var/new_folder"
|
23
47
|
end
|
24
48
|
end
|
25
49
|
end
|
@@ -70,7 +70,7 @@ describe Webbynode::Server do
|
|
70
70
|
|
71
71
|
it "should upload the local key to the server" do
|
72
72
|
@io.should_receive(:read_file).with("abc").and_return("key_contents")
|
73
|
-
@re.should_receive(:exec).with(
|
73
|
+
@re.should_receive(:exec).with("grep \"key_contents\" ~/.ssh/authorized_keys || (echo \"key_contents\" >> ~/.ssh/authorized_keys; chmod 644 ~/.ssh/authorized_keys)")
|
74
74
|
|
75
75
|
@server.add_ssh_key "abc"
|
76
76
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Load Spec Helper
|
2
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'spec_helper')
|
3
|
+
|
4
|
+
describe Webbynode::Ssh do
|
5
|
+
context 'with no port' do
|
6
|
+
subject { Webbynode::Ssh.new("2.2.1.1") }
|
7
|
+
|
8
|
+
describe '#port' do
|
9
|
+
its(:port) { should == 22 }
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '#connect' do
|
13
|
+
it 'calls start passing port 22' do
|
14
|
+
Net::SSH.should_receive(:start).with("2.2.1.1", 'git', hash_including(:port => 22))
|
15
|
+
subject.connect
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
context 'with no port' do
|
21
|
+
subject { Webbynode::Ssh.new("2.2.12.12", 2020) }
|
22
|
+
|
23
|
+
describe '#port' do
|
24
|
+
its(:port) { should == 2020 }
|
25
|
+
end
|
26
|
+
|
27
|
+
describe '#connect' do
|
28
|
+
it 'calls start passing specified port' do
|
29
|
+
Net::SSH.should_receive(:start).with("2.2.12.12", 'git', hash_including(:port => 2020))
|
30
|
+
subject.connect
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
data/webbynode.gemspec
CHANGED
@@ -2,27 +2,28 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{webbynode}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "1.0.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Felipe Coury"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-08-04}
|
10
10
|
s.description = %q{Webbynode Deployment Gem}
|
11
11
|
s.email = %q{felipe@webbynode.com}
|
12
12
|
s.executables = ["webbynode", "wn"]
|
13
|
-
s.extra_rdoc_files = ["README.rdoc", "bin/webbynode", "bin/wn", "lib/templates/api_token", "lib/templates/backup", "lib/templates/gitignore", "lib/templates/help", "lib/webbynode.rb", "lib/webbynode/api_client.rb", "lib/webbynode/application.rb", "lib/webbynode/attribute_accessors.rb", "lib/webbynode/command.rb", "lib/webbynode/commands/add_backup.rb", "lib/webbynode/commands/add_key.rb", "lib/webbynode/commands/alias.rb", "lib/webbynode/commands/apps.rb", "lib/webbynode/commands/change_dns.rb", "lib/webbynode/commands/config.rb", "lib/webbynode/commands/delete.rb", "lib/webbynode/commands/help.rb", "lib/webbynode/commands/init.rb", "lib/webbynode/commands/push.rb", "lib/webbynode/commands/remote.rb", "lib/webbynode/commands/restart.rb", "lib/webbynode/commands/start.rb", "lib/webbynode/commands/stop.rb", "lib/webbynode/commands/tasks.rb", "lib/webbynode/commands/version.rb", "lib/webbynode/commands/webbies.rb", "lib/webbynode/engines/all.rb", "lib/webbynode/engines/django.rb", "lib/webbynode/engines/engine.rb", "lib/webbynode/engines/php.rb", "lib/webbynode/engines/rack.rb", "lib/webbynode/engines/rails.rb", "lib/webbynode/engines/rails3.rb", "lib/webbynode/gemfile.rb", "lib/webbynode/git.rb", "lib/webbynode/io.rb", "lib/webbynode/notify.rb", "lib/webbynode/option.rb", "lib/webbynode/parameter.rb", "lib/webbynode/properties.rb", "lib/webbynode/push_and.rb", "lib/webbynode/remote_executor.rb", "lib/webbynode/server.rb", "lib/webbynode/ssh.rb", "lib/webbynode/ssh_keys.rb", "lib/webbynode/updater.rb"]
|
14
|
-
s.files = ["
|
13
|
+
s.extra_rdoc_files = ["README.rdoc", "bin/webbynode", "bin/wn", "lib/templates/api_token", "lib/templates/backup", "lib/templates/gitignore", "lib/templates/help", "lib/webbynode.rb", "lib/webbynode/api_client.rb", "lib/webbynode/application.rb", "lib/webbynode/attribute_accessors.rb", "lib/webbynode/command.rb", "lib/webbynode/commands/add_backup.rb", "lib/webbynode/commands/add_key.rb", "lib/webbynode/commands/addons.rb", "lib/webbynode/commands/alias.rb", "lib/webbynode/commands/apps.rb", "lib/webbynode/commands/change_dns.rb", "lib/webbynode/commands/config.rb", "lib/webbynode/commands/delete.rb", "lib/webbynode/commands/help.rb", "lib/webbynode/commands/init.rb", "lib/webbynode/commands/open.rb", "lib/webbynode/commands/push.rb", "lib/webbynode/commands/remote.rb", "lib/webbynode/commands/restart.rb", "lib/webbynode/commands/start.rb", "lib/webbynode/commands/stop.rb", "lib/webbynode/commands/tasks.rb", "lib/webbynode/commands/version.rb", "lib/webbynode/commands/webbies.rb", "lib/webbynode/engines/all.rb", "lib/webbynode/engines/django.rb", "lib/webbynode/engines/engine.rb", "lib/webbynode/engines/php.rb", "lib/webbynode/engines/rack.rb", "lib/webbynode/engines/rails.rb", "lib/webbynode/engines/rails3.rb", "lib/webbynode/gemfile.rb", "lib/webbynode/git.rb", "lib/webbynode/io.rb", "lib/webbynode/notify.rb", "lib/webbynode/option.rb", "lib/webbynode/parameter.rb", "lib/webbynode/properties.rb", "lib/webbynode/push_and.rb", "lib/webbynode/remote_executor.rb", "lib/webbynode/server.rb", "lib/webbynode/ssh.rb", "lib/webbynode/ssh_keys.rb", "lib/webbynode/updater.rb"]
|
14
|
+
s.files = ["Manifest", "PostInstall.txt", "README.rdoc", "Rakefile", "assets/webbynode.png", "bin/webbynode", "bin/wn", "changelog.rdoc", "cucumber.yml.old", "inactive_features/bootstrap.feature", "inactive_features/step_definitions/command_steps.rb", "inactive_features/support/env.rb", "inactive_features/support/hooks.rb", "inactive_features/support/io_features.rb", "inactive_features/support/mocha.rb", "lib/templates/api_token", "lib/templates/backup", "lib/templates/gitignore", "lib/templates/help", "lib/webbynode.rb", "lib/webbynode/api_client.rb", "lib/webbynode/application.rb", "lib/webbynode/attribute_accessors.rb", "lib/webbynode/command.rb", "lib/webbynode/commands/add_backup.rb", "lib/webbynode/commands/add_key.rb", "lib/webbynode/commands/addons.rb", "lib/webbynode/commands/alias.rb", "lib/webbynode/commands/apps.rb", "lib/webbynode/commands/change_dns.rb", "lib/webbynode/commands/config.rb", "lib/webbynode/commands/delete.rb", "lib/webbynode/commands/help.rb", "lib/webbynode/commands/init.rb", "lib/webbynode/commands/open.rb", "lib/webbynode/commands/push.rb", "lib/webbynode/commands/remote.rb", "lib/webbynode/commands/restart.rb", "lib/webbynode/commands/start.rb", "lib/webbynode/commands/stop.rb", "lib/webbynode/commands/tasks.rb", "lib/webbynode/commands/version.rb", "lib/webbynode/commands/webbies.rb", "lib/webbynode/engines/all.rb", "lib/webbynode/engines/django.rb", "lib/webbynode/engines/engine.rb", "lib/webbynode/engines/php.rb", "lib/webbynode/engines/rack.rb", "lib/webbynode/engines/rails.rb", "lib/webbynode/engines/rails3.rb", "lib/webbynode/gemfile.rb", "lib/webbynode/git.rb", "lib/webbynode/io.rb", "lib/webbynode/notify.rb", "lib/webbynode/option.rb", "lib/webbynode/parameter.rb", "lib/webbynode/properties.rb", "lib/webbynode/push_and.rb", "lib/webbynode/remote_executor.rb", "lib/webbynode/server.rb", "lib/webbynode/ssh.rb", "lib/webbynode/ssh_keys.rb", "lib/webbynode/updater.rb", "spec/fixtures/aliases", "spec/fixtures/api/credentials", "spec/fixtures/api/dns", "spec/fixtures/api/dns_a_record", "spec/fixtures/api/dns_a_record_already_exists", "spec/fixtures/api/dns_a_record_error", "spec/fixtures/api/dns_new_zone", "spec/fixtures/api/webbies", "spec/fixtures/api/webbies_unauthorized", "spec/fixtures/api/webby", "spec/fixtures/commands/tasks/after_push", "spec/fixtures/fixture_helpers", "spec/fixtures/git/config/210.11.13.12", "spec/fixtures/git/config/67.23.79.31", "spec/fixtures/git/config/67.23.79.32", "spec/fixtures/git/config/config", "spec/fixtures/git/config/config_5", "spec/fixtures/git/config/new_210.11.13.12", "spec/fixtures/git/config/new_67.23.79.31", "spec/fixtures/git/config/new_67.23.79.32", "spec/fixtures/git/config/new_config", "spec/fixtures/git/status/clean", "spec/fixtures/git/status/dirty", "spec/fixtures/pushand", "spec/fixtures/settings.py", "spec/spec_helper.rb", "spec/webbynode/api_client_spec.rb", "spec/webbynode/application_spec.rb", "spec/webbynode/command_spec.rb", "spec/webbynode/commands/add_backup_spec.rb", "spec/webbynode/commands/add_key_spec.rb", "spec/webbynode/commands/addons_spec.rb", "spec/webbynode/commands/alias_spec.rb", "spec/webbynode/commands/apps_spec.rb", "spec/webbynode/commands/change_dns_spec.rb", "spec/webbynode/commands/config_spec.rb", "spec/webbynode/commands/delete_spec.rb", "spec/webbynode/commands/help_spec.rb", "spec/webbynode/commands/init_spec.rb", "spec/webbynode/commands/open_spec.rb", "spec/webbynode/commands/push_spec.rb", "spec/webbynode/commands/remote_spec.rb", "spec/webbynode/commands/tasks_spec.rb", "spec/webbynode/commands/version_spec.rb", "spec/webbynode/commands/webbies_spec.rb", "spec/webbynode/engines/django_spec.rb", "spec/webbynode/engines/engine_spec.rb", "spec/webbynode/engines/php_spec.rb", "spec/webbynode/engines/rack_spec.rb", "spec/webbynode/engines/rails3_spec.rb", "spec/webbynode/engines/rails_spec.rb", "spec/webbynode/gemfile_spec.rb", "spec/webbynode/git_spec.rb", "spec/webbynode/io_spec.rb", "spec/webbynode/option_spec.rb", "spec/webbynode/parameter_spec.rb", "spec/webbynode/properties_spec.rb", "spec/webbynode/push_and_spec.rb", "spec/webbynode/remote_executor_spec.rb", "spec/webbynode/server_spec.rb", "spec/webbynode/ssh_spec.rb", "webbynode.gemspec"]
|
15
15
|
s.homepage = %q{http://webbynode.com}
|
16
16
|
s.post_install_message = %q{
|
17
17
|
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
18
18
|
Webbynode Rapid Deployment Gem
|
19
19
|
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
Thank you for installing Webbynode gem. You're now
|
22
|
+
able to deploy and manage your applications from
|
23
|
+
the comfort of your command line.
|
23
24
|
|
24
|
-
|
25
|
-
http://guides.webbynode.com/articles/rapidapps
|
25
|
+
Please read our guide for a quickstart:
|
26
|
+
http://guides.webbynode.com/articles/rapidapps/
|
26
27
|
|
27
28
|
}
|
28
29
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Webbynode", "--main", "README.rdoc"]
|
@@ -40,12 +41,14 @@ http://guides.webbynode.com/articles/rapidapps
|
|
40
41
|
s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.20"])
|
41
42
|
s.add_runtime_dependency(%q<highline>, [">= 1.5.2"])
|
42
43
|
s.add_runtime_dependency(%q<httparty>, [">= 0.4.5"])
|
44
|
+
s.add_runtime_dependency(%q<launchy>, [">= 0.3.7"])
|
43
45
|
s.add_runtime_dependency(%q<domainatrix>, [">= 0.0.7"])
|
44
46
|
else
|
45
47
|
s.add_dependency(%q<bundler>, [">= 0.9.26"])
|
46
48
|
s.add_dependency(%q<net-ssh>, [">= 2.0.20"])
|
47
49
|
s.add_dependency(%q<highline>, [">= 1.5.2"])
|
48
50
|
s.add_dependency(%q<httparty>, [">= 0.4.5"])
|
51
|
+
s.add_dependency(%q<launchy>, [">= 0.3.7"])
|
49
52
|
s.add_dependency(%q<domainatrix>, [">= 0.0.7"])
|
50
53
|
end
|
51
54
|
else
|
@@ -53,6 +56,7 @@ http://guides.webbynode.com/articles/rapidapps
|
|
53
56
|
s.add_dependency(%q<net-ssh>, [">= 2.0.20"])
|
54
57
|
s.add_dependency(%q<highline>, [">= 1.5.2"])
|
55
58
|
s.add_dependency(%q<httparty>, [">= 0.4.5"])
|
59
|
+
s.add_dependency(%q<launchy>, [">= 0.3.7"])
|
56
60
|
s.add_dependency(%q<domainatrix>, [">= 0.0.7"])
|
57
61
|
end
|
58
62
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webbynode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
7
9
|
- 0
|
8
|
-
|
9
|
-
- 5
|
10
|
-
- beta2
|
11
|
-
version: 0.2.5.beta2
|
10
|
+
version: 1.0.0
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Felipe Coury
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-
|
18
|
+
date: 2010-08-04 00:00:00 -03:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
@@ -84,9 +83,25 @@ dependencies:
|
|
84
83
|
type: :runtime
|
85
84
|
version_requirements: *id004
|
86
85
|
- !ruby/object:Gem::Dependency
|
87
|
-
name:
|
86
|
+
name: launchy
|
88
87
|
prerelease: false
|
89
88
|
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
hash: 29
|
94
|
+
segments:
|
95
|
+
- 0
|
96
|
+
- 3
|
97
|
+
- 7
|
98
|
+
version: 0.3.7
|
99
|
+
type: :runtime
|
100
|
+
version_requirements: *id005
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: domainatrix
|
103
|
+
prerelease: false
|
104
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
90
105
|
none: false
|
91
106
|
requirements:
|
92
107
|
- - ">="
|
@@ -98,7 +113,7 @@ dependencies:
|
|
98
113
|
- 7
|
99
114
|
version: 0.0.7
|
100
115
|
type: :runtime
|
101
|
-
version_requirements: *
|
116
|
+
version_requirements: *id006
|
102
117
|
description: Webbynode Deployment Gem
|
103
118
|
email: felipe@webbynode.com
|
104
119
|
executables:
|
@@ -121,6 +136,7 @@ extra_rdoc_files:
|
|
121
136
|
- lib/webbynode/command.rb
|
122
137
|
- lib/webbynode/commands/add_backup.rb
|
123
138
|
- lib/webbynode/commands/add_key.rb
|
139
|
+
- lib/webbynode/commands/addons.rb
|
124
140
|
- lib/webbynode/commands/alias.rb
|
125
141
|
- lib/webbynode/commands/apps.rb
|
126
142
|
- lib/webbynode/commands/change_dns.rb
|
@@ -128,6 +144,7 @@ extra_rdoc_files:
|
|
128
144
|
- lib/webbynode/commands/delete.rb
|
129
145
|
- lib/webbynode/commands/help.rb
|
130
146
|
- lib/webbynode/commands/init.rb
|
147
|
+
- lib/webbynode/commands/open.rb
|
131
148
|
- lib/webbynode/commands/push.rb
|
132
149
|
- lib/webbynode/commands/remote.rb
|
133
150
|
- lib/webbynode/commands/restart.rb
|
@@ -157,9 +174,7 @@ extra_rdoc_files:
|
|
157
174
|
- lib/webbynode/ssh_keys.rb
|
158
175
|
- lib/webbynode/updater.rb
|
159
176
|
files:
|
160
|
-
- History.txt
|
161
177
|
- Manifest
|
162
|
-
- Manifest.txt
|
163
178
|
- PostInstall.txt
|
164
179
|
- README.rdoc
|
165
180
|
- Rakefile
|
@@ -168,7 +183,6 @@ files:
|
|
168
183
|
- bin/wn
|
169
184
|
- changelog.rdoc
|
170
185
|
- cucumber.yml.old
|
171
|
-
- devver.rake
|
172
186
|
- inactive_features/bootstrap.feature
|
173
187
|
- inactive_features/step_definitions/command_steps.rb
|
174
188
|
- inactive_features/support/env.rb
|
@@ -186,6 +200,7 @@ files:
|
|
186
200
|
- lib/webbynode/command.rb
|
187
201
|
- lib/webbynode/commands/add_backup.rb
|
188
202
|
- lib/webbynode/commands/add_key.rb
|
203
|
+
- lib/webbynode/commands/addons.rb
|
189
204
|
- lib/webbynode/commands/alias.rb
|
190
205
|
- lib/webbynode/commands/apps.rb
|
191
206
|
- lib/webbynode/commands/change_dns.rb
|
@@ -193,6 +208,7 @@ files:
|
|
193
208
|
- lib/webbynode/commands/delete.rb
|
194
209
|
- lib/webbynode/commands/help.rb
|
195
210
|
- lib/webbynode/commands/init.rb
|
211
|
+
- lib/webbynode/commands/open.rb
|
196
212
|
- lib/webbynode/commands/push.rb
|
197
213
|
- lib/webbynode/commands/remote.rb
|
198
214
|
- lib/webbynode/commands/restart.rb
|
@@ -238,6 +254,10 @@ files:
|
|
238
254
|
- spec/fixtures/git/config/67.23.79.32
|
239
255
|
- spec/fixtures/git/config/config
|
240
256
|
- spec/fixtures/git/config/config_5
|
257
|
+
- spec/fixtures/git/config/new_210.11.13.12
|
258
|
+
- spec/fixtures/git/config/new_67.23.79.31
|
259
|
+
- spec/fixtures/git/config/new_67.23.79.32
|
260
|
+
- spec/fixtures/git/config/new_config
|
241
261
|
- spec/fixtures/git/status/clean
|
242
262
|
- spec/fixtures/git/status/dirty
|
243
263
|
- spec/fixtures/pushand
|
@@ -248,6 +268,7 @@ files:
|
|
248
268
|
- spec/webbynode/command_spec.rb
|
249
269
|
- spec/webbynode/commands/add_backup_spec.rb
|
250
270
|
- spec/webbynode/commands/add_key_spec.rb
|
271
|
+
- spec/webbynode/commands/addons_spec.rb
|
251
272
|
- spec/webbynode/commands/alias_spec.rb
|
252
273
|
- spec/webbynode/commands/apps_spec.rb
|
253
274
|
- spec/webbynode/commands/change_dns_spec.rb
|
@@ -255,6 +276,7 @@ files:
|
|
255
276
|
- spec/webbynode/commands/delete_spec.rb
|
256
277
|
- spec/webbynode/commands/help_spec.rb
|
257
278
|
- spec/webbynode/commands/init_spec.rb
|
279
|
+
- spec/webbynode/commands/open_spec.rb
|
258
280
|
- spec/webbynode/commands/push_spec.rb
|
259
281
|
- spec/webbynode/commands/remote_spec.rb
|
260
282
|
- spec/webbynode/commands/tasks_spec.rb
|
@@ -271,9 +293,11 @@ files:
|
|
271
293
|
- spec/webbynode/io_spec.rb
|
272
294
|
- spec/webbynode/option_spec.rb
|
273
295
|
- spec/webbynode/parameter_spec.rb
|
296
|
+
- spec/webbynode/properties_spec.rb
|
274
297
|
- spec/webbynode/push_and_spec.rb
|
275
298
|
- spec/webbynode/remote_executor_spec.rb
|
276
299
|
- spec/webbynode/server_spec.rb
|
300
|
+
- spec/webbynode/ssh_spec.rb
|
277
301
|
- webbynode.gemspec
|
278
302
|
has_rdoc: true
|
279
303
|
homepage: http://webbynode.com
|
@@ -285,11 +309,12 @@ post_install_message: |+
|
|
285
309
|
Webbynode Rapid Deployment Gem
|
286
310
|
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
287
311
|
|
288
|
-
|
289
|
-
|
312
|
+
Thank you for installing Webbynode gem. You're now
|
313
|
+
able to deploy and manage your applications from
|
314
|
+
the comfort of your command line.
|
290
315
|
|
291
|
-
|
292
|
-
http://guides.webbynode.com/articles/rapidapps
|
316
|
+
Please read our guide for a quickstart:
|
317
|
+
http://guides.webbynode.com/articles/rapidapps/
|
293
318
|
|
294
319
|
rdoc_options:
|
295
320
|
- --line-numbers
|
data/History.txt
DELETED
data/Manifest.txt
DELETED
data/devver.rake
DELETED
@@ -1,174 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
|
3
|
-
namespace :devver do
|
4
|
-
|
5
|
-
APP_CALL = 'devver'
|
6
|
-
# List any test files you do not want to run on Devver. This array can contain names and regular expressions.
|
7
|
-
EXCLUDED_TEST_FILES = []
|
8
|
-
|
9
|
-
desc "Runs all units functionals and integration tests on Devver"
|
10
|
-
task :test do
|
11
|
-
errors = %w(devver:test:units devver:test:functionals devver:test:integration).collect do |task|
|
12
|
-
begin
|
13
|
-
Rake::Task[task].invoke
|
14
|
-
nil
|
15
|
-
rescue => e
|
16
|
-
task
|
17
|
-
end
|
18
|
-
end.compact
|
19
|
-
abort "Errors running #{errors.join(", ").to_s}!" if errors.any?
|
20
|
-
end
|
21
|
-
|
22
|
-
desc "Forces Devver to clear and rebuild the database (by executing the 'prepare_database' hook)"
|
23
|
-
task :prepare_db do
|
24
|
-
command = "#{APP_CALL} --db"
|
25
|
-
puts command
|
26
|
-
system(command)
|
27
|
-
end
|
28
|
-
|
29
|
-
desc "Forces Devver to try to install dependencies (by executing the 'install_dependencies' hook)"
|
30
|
-
task :install_dependencies do
|
31
|
-
command = "#{APP_CALL} --install_dependencies"
|
32
|
-
puts command
|
33
|
-
system(command)
|
34
|
-
end
|
35
|
-
|
36
|
-
desc "Forces Devver to sync all changed files"
|
37
|
-
task :sync do
|
38
|
-
command = "#{APP_CALL} --sync"
|
39
|
-
puts command
|
40
|
-
system(command)
|
41
|
-
end
|
42
|
-
|
43
|
-
desc "Delete the Devver project ID for this project. The next time you connect to Devver, you'll be assigned a new project ID"
|
44
|
-
task :reset do
|
45
|
-
command = "rm .devver/project_id"
|
46
|
-
system(command)
|
47
|
-
puts "Your project has been reset successfully"
|
48
|
-
end
|
49
|
-
|
50
|
-
desc "Delete all of the project files on the server and resync"
|
51
|
-
task :reload do
|
52
|
-
command = "#{APP_CALL} --reload"
|
53
|
-
puts command
|
54
|
-
system(command)
|
55
|
-
end
|
56
|
-
|
57
|
-
desc "Runs all specs on Devver"
|
58
|
-
task :spec do
|
59
|
-
devvertest('spec/**/*_spec.rb')
|
60
|
-
end
|
61
|
-
|
62
|
-
namespace :spec do
|
63
|
-
desc "Runs all model specs on Devver"
|
64
|
-
task :model do
|
65
|
-
devvertest('spec/models/**/*_spec.rb')
|
66
|
-
end
|
67
|
-
|
68
|
-
desc "Runs all request specs on Devver"
|
69
|
-
task :request do
|
70
|
-
devvertest('spec/requests/**/*_spec.rb')
|
71
|
-
end
|
72
|
-
|
73
|
-
desc "Runs all controller specs on Devver"
|
74
|
-
task :controller do
|
75
|
-
devvertest('spec/controllers/**/*_spec.rb')
|
76
|
-
end
|
77
|
-
|
78
|
-
desc "Runs all view specs on Devver"
|
79
|
-
task :view do
|
80
|
-
devvertest('spec/views/**/*_spec.rb')
|
81
|
-
end
|
82
|
-
|
83
|
-
desc "Runs all helper specs on Devver"
|
84
|
-
task :helper do
|
85
|
-
devvertest('spec/helpers/**/*_spec.rb')
|
86
|
-
end
|
87
|
-
|
88
|
-
desc "Runs all lib specs on Devver"
|
89
|
-
task :lib do
|
90
|
-
devvertest('spec/lib/**/*_spec.rb')
|
91
|
-
end
|
92
|
-
|
93
|
-
end
|
94
|
-
|
95
|
-
|
96
|
-
namespace :test do
|
97
|
-
desc "Runs all unit tests on Devver"
|
98
|
-
task :units do
|
99
|
-
devvertest('test/unit/**/*_test.rb')
|
100
|
-
end
|
101
|
-
|
102
|
-
desc "Runs all functional tests on Devver"
|
103
|
-
task :functionals do
|
104
|
-
devvertest('test/functional/**/*_test.rb')
|
105
|
-
end
|
106
|
-
|
107
|
-
desc "Runs all integration tests on Devver"
|
108
|
-
task :integration do
|
109
|
-
devvertest('test/integration/**/*_test.rb')
|
110
|
-
end
|
111
|
-
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
def remove_excluded_files(files)
|
116
|
-
removed_files = []
|
117
|
-
files.each do |file|
|
118
|
-
EXCLUDED_TEST_FILES.each do |exclude|
|
119
|
-
removed_files << file if exclude===file
|
120
|
-
end
|
121
|
-
end
|
122
|
-
removed_files = removed_files.flatten
|
123
|
-
files = files - removed_files
|
124
|
-
[files, removed_files]
|
125
|
-
end
|
126
|
-
|
127
|
-
def run_tests_locally(files)
|
128
|
-
puts "Running the excluded test files locally"
|
129
|
-
# Run RSpec files
|
130
|
-
if files.first=~/_spec.rb/
|
131
|
-
command ="spec "
|
132
|
-
else # Run Test::Unit files
|
133
|
-
command = 'ruby -e "ARGV.each{|f| load f unless f =~ /^-/}" '
|
134
|
-
end
|
135
|
-
command += files.join(" ")
|
136
|
-
puts command
|
137
|
-
results = system(command)
|
138
|
-
raise RuntimeError.new("Command failed with status (1)") unless results
|
139
|
-
end
|
140
|
-
|
141
|
-
def get_env_var(var_name)
|
142
|
-
ENV[var_name] || ENV[var_name.upcase]
|
143
|
-
end
|
144
|
-
|
145
|
-
def devvertest(pattern)
|
146
|
-
reload = get_env_var('reload')=='true' ? true : false
|
147
|
-
#default sync to true
|
148
|
-
sync = true
|
149
|
-
sync = false if get_env_var('sync')=='false'
|
150
|
-
cache = get_env_var('cache')=='true' ? true : false
|
151
|
-
db = get_env_var('db')=='true' ? true : false
|
152
|
-
run_excluded = get_env_var('run_excluded')
|
153
|
-
if run_excluded=='true' || run_excluded=='after'
|
154
|
-
run_excluded = 'after'
|
155
|
-
elsif run_excluded=='only'
|
156
|
-
run_excluded = 'only'
|
157
|
-
else
|
158
|
-
run_excluded = ''
|
159
|
-
end
|
160
|
-
|
161
|
-
files = FileList[pattern].to_a
|
162
|
-
files, removed_files = remove_excluded_files(files)
|
163
|
-
|
164
|
-
if run_excluded!='only'
|
165
|
-
command = "#{APP_CALL} #{'--reload' if reload} #{'--nosync' if !sync} #{'--db' if db} #{'--cache' if cache} #{files.join(' ')}"
|
166
|
-
puts command
|
167
|
-
results = system(command)
|
168
|
-
raise RuntimeError.new("Command failed with status (1)") unless results
|
169
|
-
end
|
170
|
-
|
171
|
-
if run_excluded=='only' || run_excluded=='after'
|
172
|
-
run_tests_locally(removed_files) if removed_files.length > 0
|
173
|
-
end
|
174
|
-
end
|