teleport 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,13 @@ module Teleport
4
4
  # The main class for the teleport command line.
5
5
  class Main
6
6
  include Constants
7
- include Util
7
+ include Util
8
8
 
9
9
  TAR = "#{DIR}.tgz"
10
-
10
+
11
11
  def initialize(cmd = :teleport)
12
12
  cli(cmd)
13
-
13
+
14
14
  case @options[:cmd]
15
15
  when :teleport
16
16
  $stderr = $stdout
@@ -22,7 +22,7 @@ module Teleport
22
22
  infer
23
23
  end
24
24
  end
25
-
25
+
26
26
  # Parse ARGV.
27
27
  def cli(cmd)
28
28
  @options = { }
@@ -39,6 +39,10 @@ module Teleport
39
39
  o.on("-u", "--upgrade", "upgrade the existing ruby to the version configured") do |f|
40
40
  @options[:upgrade] = true
41
41
  end
42
+ o.on("-v", "--version", "print the teleport version number") do |f|
43
+ puts "teleport #{VERSION}"
44
+ exit(0)
45
+ end
42
46
  o.on_tail("-h", "--help", "print this help text") do
43
47
  puts opt
44
48
  exit(0)
@@ -80,7 +84,7 @@ module Teleport
80
84
  def assemble_tgz
81
85
  banner "Assembling #{TAR}..."
82
86
  rm_and_mkdir(DIR)
83
-
87
+
84
88
  # gem
85
89
  run("cp", ["-r", "#{File.dirname(__FILE__)}/../../lib", GEM])
86
90
  # data
@@ -92,7 +96,7 @@ module Teleport
92
96
  copy.sort.each { |i| run("cp", ["-r", i, DATA]) }
93
97
  # config.sh
94
98
  File.open("#{DIR}/config", "w") do |f|
95
- f.puts("CONFIG_HOST='#{@options[:host]}'")
99
+ f.puts("CONFIG_HOST='#{@options[:host]}'")
96
100
  f.puts("CONFIG_RUBY='#{@config.ruby}'")
97
101
  f.puts("CONFIG_RUBYGEMS='#{RUBYGEMS}'")
98
102
  f.puts("CONFIG_UPGRADE='#{@options[:upgrade] || false}'")
@@ -108,7 +112,7 @@ module Teleport
108
112
  if File.exists?(ssh_key)
109
113
  run("cp", [ssh_key, "#{DIR}/#{PUBKEY}"])
110
114
  end
111
-
115
+
112
116
  Dir.chdir(File.dirname(DIR)) do
113
117
  run("tar", ["cfpz", TAR, File.basename(DIR)])
114
118
  end
@@ -120,7 +124,7 @@ module Teleport
120
124
  banner "scp #{TAR} to #{@options[:host]}:#{TAR}..."
121
125
 
122
126
  args = []
123
- args += @config.ssh_options if @config.ssh_options
127
+ args += @config.ssh_options if @config.ssh_options
124
128
  args << TAR
125
129
  args << "#{@options[:host]}:#{TAR}"
126
130
  run("scp", args)
@@ -72,7 +72,7 @@ function install_ruby_20_requirements() {
72
72
  }
73
73
 
74
74
  function install_ruby_200() {
75
- local patch=p0
75
+ local patch=p195
76
76
 
77
77
  install_ruby_20_requirements
78
78
 
@@ -142,7 +142,7 @@ function install_ruby_192() {
142
142
  }
143
143
 
144
144
  function install_ruby_193_src() {
145
- local patch=p392
145
+ local patch=p429
146
146
 
147
147
  install_ruby_19_requirements
148
148
 
@@ -1,4 +1,4 @@
1
1
  module Teleport
2
2
  # Gem version
3
- VERSION = "1.0.15"
3
+ VERSION = "1.0.16"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teleport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000 Z
12
+ date: 2013-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amazon-ec2
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: 736948082580443619
139
+ hash: -1414408985001798649
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: 736948082580443619
148
+ hash: -1414408985001798649
149
149
  requirements: []
150
150
  rubyforge_project: teleport
151
151
  rubygems_version: 1.8.24