aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/deploy.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-12-05 16:26:36 -0800
committerelijah <elijah@riseup.net>2013-12-05 16:26:36 -0800
commit3e7c500dda3a1998a892a9ee06dabf5a2fa70f38 (patch)
tree8a810abcf30c90d08403f334c36dbc8b8c59e7a6 /lib/leap_cli/commands/deploy.rb
parent4199766b4da7edf170895600ce8eeb8970800769 (diff)
downloadleap_cli-3e7c500dda3a1998a892a9ee06dabf5a2fa70f38.tar.gz
leap_cli-3e7c500dda3a1998a892a9ee06dabf5a2fa70f38.tar.bz2
added no-deploy check and simple `leap test run`.
Diffstat (limited to 'lib/leap_cli/commands/deploy.rb')
-rw-r--r--lib/leap_cli/commands/deploy.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb
index 23af0f7..61323c9 100644
--- a/lib/leap_cli/commands/deploy.rb
+++ b/lib/leap_cli/commands/deploy.rb
@@ -39,6 +39,7 @@ module LeapCli
ssh_connect(nodes, connect_options(options)) do |ssh|
ssh.leap.log :checking, 'node' do
+ ssh.leap.check_for_no_deploy
ssh.leap.assert_initialized
end
ssh.leap.log :synching, "configuration files" do
@@ -94,13 +95,13 @@ module LeapCli
def sync_puppet_files(ssh)
ssh.rsync.update do |server|
- ssh.leap.log(Path.platform + '/[bin,puppet] -> ' + server.host + ':' + LeapCli::PUPPET_DESTINATION)
+ ssh.leap.log(Path.platform + '/[bin,tests,puppet] -> ' + server.host + ':' + LeapCli::PUPPET_DESTINATION)
{
:dest => LeapCli::PUPPET_DESTINATION,
:source => '.',
:chdir => Path.platform,
:excludes => '*',
- :includes => ['/bin', '/bin/**', '/puppet', '/puppet/**'],
+ :includes => ['/bin', '/bin/**', '/puppet', '/puppet/**', '/tests', '/tests/**'],
:flags => "-rlt --relative --delete --copy-links"
}
end