standup 0.3.1 → 0.3.2
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.
- data/README.md +5 -0
- data/VERSION +1 -1
- data/lib/standup/remoting.rb +1 -1
- data/scripts/appconsole.rb +1 -1
- data/scripts/shell.rb +7 -1
- data/scripts/watchlog.rb +7 -0
- data/standup.gemspec +2 -1
- metadata +4 -3
data/README.md
CHANGED
@@ -43,6 +43,11 @@ For example, if you want to add `rescue` to your configuration, you need to:
|
|
43
43
|
|
44
44
|
## To do
|
45
45
|
|
46
|
+
- Redesign node:script running concept:
|
47
|
+
`setup` script need to be run for each node
|
48
|
+
`shell` script is meant to be run for one specific node
|
49
|
+
`init` script does not relate to any node at all.
|
50
|
+
|
46
51
|
- If there is more than one node in standup.yml, require node name(s) or `all` explicitly set:
|
47
52
|
`standup shell web`
|
48
53
|
`standup update db,web`
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/standup/remoting.rb
CHANGED
@@ -115,7 +115,7 @@ module Standup
|
|
115
115
|
|
116
116
|
def rsync source, destination, sudo
|
117
117
|
command = [
|
118
|
-
'rsync -
|
118
|
+
'rsync -rlptDzP --delete',
|
119
119
|
"-e 'ssh -i #{@keypair_file} -q -o StrictHostKeyChecking=no'",
|
120
120
|
("--rsync-path='sudo rsync'" if sudo),
|
121
121
|
[*source].join(' '),
|
data/scripts/appconsole.rb
CHANGED
@@ -2,6 +2,6 @@ Standup.script do
|
|
2
2
|
self.description = 'Run remote Rails application console'
|
3
3
|
|
4
4
|
def run
|
5
|
-
|
5
|
+
scripts.shell.make_shell "cd /opt/webapp && rails console #{scripts.webapp.params.rails_env}"
|
6
6
|
end
|
7
7
|
end
|
data/scripts/shell.rb
CHANGED
@@ -2,6 +2,12 @@ Standup.script do
|
|
2
2
|
self.description = 'Run remote shell (e.g. bash)'
|
3
3
|
|
4
4
|
def run
|
5
|
-
|
5
|
+
make_shell
|
6
|
+
end
|
7
|
+
|
8
|
+
def make_shell shell_command = ''
|
9
|
+
command = "#{node.ssh_string} -t '#{shell_command}'"
|
10
|
+
bright_p command
|
11
|
+
Kernel.exec command
|
6
12
|
end
|
7
13
|
end
|
data/scripts/watchlog.rb
ADDED
data/standup.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{standup}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ilia Ablamonov", "Cloud Castle Inc."]
|
@@ -56,6 +56,7 @@ Gem::Specification.new do |s|
|
|
56
56
|
"scripts/status.rb",
|
57
57
|
"scripts/terminate.rb",
|
58
58
|
"scripts/update.rb",
|
59
|
+
"scripts/watchlog.rb",
|
59
60
|
"scripts/webapp.rb",
|
60
61
|
"scripts/webapp/nginx-server-fragment.conf",
|
61
62
|
"standup.gemspec"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ilia Ablamonov
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- scripts/status.rb
|
174
174
|
- scripts/terminate.rb
|
175
175
|
- scripts/update.rb
|
176
|
+
- scripts/watchlog.rb
|
176
177
|
- scripts/webapp.rb
|
177
178
|
- scripts/webapp/nginx-server-fragment.conf
|
178
179
|
- standup.gemspec
|