Missile-Deploy 0.1.1 → 0.2.0
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.
- checksums.yaml +4 -4
- data/lib/Missile/deploy.rb +2 -1
- data/lib/Missile/list.rb +0 -1
- data/lib/Missile/setup.rb +5 -1
- data/lib/Missile/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f01bc6a2f70ba8387850d74824264f3062184f6
|
4
|
+
data.tar.gz: 8426bb28dd26563601ea5c50ef5800c838e20265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bc2564227759e3078716e5f26328eb4d7a6cfe682f447539f3feaeb932c5f4ee7a44e6d7ac30e48d9c1f94b5617affceb0462258b4cc50c6019c46e38894d06
|
7
|
+
data.tar.gz: 1ac5d76d263edadd538efcba69937e5556462f13b7c8a9e842ff168b0b1ce214cf7dc06fa2905666551d08be8fe0ec77f09c07b6c62f64f2641e2023b7b89354
|
data/lib/Missile/deploy.rb
CHANGED
@@ -5,7 +5,8 @@ class Deploy
|
|
5
5
|
puts 'starting deployment'
|
6
6
|
Net::SCP.upload!(config[:host], config[:username],
|
7
7
|
config[:local_path], config[:web_path],
|
8
|
-
:ssh => {:password => config[:password]
|
8
|
+
:ssh => {:password => config[:password],
|
9
|
+
:port => config[:port]},
|
9
10
|
:recursive => true)
|
10
11
|
|
11
12
|
puts 'deployment complete'
|
data/lib/Missile/list.rb
CHANGED
data/lib/Missile/setup.rb
CHANGED
@@ -18,8 +18,12 @@ class Setup
|
|
18
18
|
web_path = STDIN.gets.chomp
|
19
19
|
print 'Please enter local path to project > '
|
20
20
|
local_path = STDIN.gets.chomp
|
21
|
+
print 'Please enter port number (leave blank if default)'
|
22
|
+
port = STDIN.gets.chomp
|
21
23
|
|
22
|
-
|
24
|
+
port = port.nil? ? port : '22'
|
25
|
+
|
26
|
+
configs = {:host => host, :username => username, :password => password, :web_path => web_path, :local_path => local_path, :port => port}
|
23
27
|
File.open(File.expand_path(project_dir), 'w+') { |file| file.write(configs.to_yaml) }
|
24
28
|
end
|
25
29
|
|
data/lib/Missile/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Missile-Deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ddymko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|