ec2ssh 3.0.0.beta1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ba8b5318372505cf30fc98a44565ae291d35c70
4
- data.tar.gz: f2e69c94b92e1f8f795fe894e84ee6779a3906bd
3
+ metadata.gz: e2a2ee78001eaabbf39624cff2c27a296e239e77
4
+ data.tar.gz: e2b72fd81e19145a21d61a67bd10c6feb209c530
5
5
  SHA512:
6
- metadata.gz: bc87a5021187606885dbed6ef6e9f297af5544477ce6ce4063e0f7d3b64ee114507e16c721e64d6c29abb5e6c53e82854e826399bd9aabfc50cbf097bb2d66e0
7
- data.tar.gz: 91b1bedabe6f6409251df5415ff0b53ad9d65afb2a9a13dc5396e5f0ac9af24ab8212dc446630206d192c31a54d9fb4672ebe489e2a1227ced631f4d8f8105b3
6
+ metadata.gz: 96d674315445326d0036e5e3cc535382d9aaa045fc1665df00261c24965a031d675a2cc2d91f655ae151325a4aac8b5deb749f29ff4fe358fb86eff17c027e78
7
+ data.tar.gz: 427149ba39d20f9b132e241687c4b76e65fb8819ab91f0c075d22fc7be34c920679d9b5113f83fba51ec073e6c7ad3e201f307db36ecfd9f46cbb20b8031de9c
@@ -1,4 +1,8 @@
1
1
  # Change Log
2
+ ## 3.0.0
3
+ * Dotfile (.ec2ssh) format has been changed from YAML to Ruby DSL.
4
+ * Refactored
5
+
2
6
  ## 2.0.7
3
7
 
4
8
  * Add ssh_options (#11)
@@ -51,6 +51,12 @@ module Ec2ssh
51
51
  command.run
52
52
  end
53
53
 
54
+ desc 'version', 'Show version'
55
+ def version
56
+ require 'ec2ssh/version'
57
+ puts "ec2ssh #{Ec2ssh::VERSION}"
58
+ end
59
+
54
60
  no_tasks do
55
61
  def check_dotfile_version
56
62
  return unless File.exist?(options.dotfile)
@@ -48,6 +48,10 @@ module Ec2ssh
48
48
  end
49
49
 
50
50
  def config_src
51
+ unless File.exist?(@path)
52
+ File.open(@path, "w", 0600).close()
53
+ end
54
+
51
55
  @config_src ||= File.open(@path, "r") do |f|
52
56
  f.read
53
57
  end
@@ -1,3 +1,3 @@
1
1
  module Ec2ssh
2
- VERSION = '3.0.0.beta1'
2
+ VERSION = '3.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Issei Naruta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -109,9 +109,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ">"
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 1.3.1
114
+ version: '0'
115
115
  requirements: []
116
116
  rubyforge_project: ec2ssh
117
117
  rubygems_version: 2.2.2