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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41be2e008f1d2de1f06f16c78ec6544d3a99df80
4
- data.tar.gz: b247663511d1e9a386126a8ec721edf8e84b755e
3
+ metadata.gz: 1f01bc6a2f70ba8387850d74824264f3062184f6
4
+ data.tar.gz: 8426bb28dd26563601ea5c50ef5800c838e20265
5
5
  SHA512:
6
- metadata.gz: 83ab3a25d1891703ec2717051e4e608aead27db747bf2ba2ab49d5954653d37318550fc92234df7bc6c5b1b233e761bd3b192e1b981651bfb58219dfbab99e97
7
- data.tar.gz: 72427988fa5fc887dd76aa544c02a50a44f1a7cd962b76a1e6fad426a8f530584ac9103f278c6e4bbffa2791eca0867f50decb23919fbc88379496cb22f30091
6
+ metadata.gz: 5bc2564227759e3078716e5f26328eb4d7a6cfe682f447539f3feaeb932c5f4ee7a44e6d7ac30e48d9c1f94b5617affceb0462258b4cc50c6019c46e38894d06
7
+ data.tar.gz: 1ac5d76d263edadd538efcba69937e5556462f13b7c8a9e842ff168b0b1ce214cf7dc06fa2905666551d08be8fe0ec77f09c07b6c62f64f2641e2023b7b89354
@@ -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
@@ -14,7 +14,6 @@ class List
14
14
  if File.exist?(project)
15
15
  text = File.open(project)
16
16
  text.each_line do |line|
17
- puts "#{line}"
18
17
  end
19
18
  else
20
19
  puts "The deployment file you are looking for does not exist"
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
- configs = {:host => host, :username => username, :password => password, :web_path => web_path, :local_path => local_path}
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
 
@@ -1,3 +1,3 @@
1
1
  module Missile
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.1
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: 2015-12-30 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor