sumodev 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,11 @@ class Sumodev::Commands::Push < Thor::Group
30
30
 
31
31
  ssh.scp.upload(authorized_keys.to_io, '.ssh/authorized_keys')
32
32
  end
33
+ rescue Net::SCP::Error
34
+ $stderr.puts
35
+ $stderr.puts "ERROR - There seems to be an error fetching the file from the server."
36
+ $stderr.puts "Make sure you have SSH access and a working shell"
37
+ exit 1
33
38
  end
34
39
 
35
40
  private
@@ -18,6 +18,14 @@ class Sumodev::Commands::Ssh < Thor::Group
18
18
  :sumodev => {:login => 'sites', :host => 'dev.sumocoders.eu'}
19
19
  }
20
20
 
21
+ class << self
22
+ def help(shell)
23
+ super
24
+
25
+ shell.say "Possible servers: #{Servers.keys.join(', ')}"
26
+ end
27
+ end
28
+
21
29
  def check_ssh_key
22
30
  if Dir.glob(ENV["HOME"] + "/.ssh/id_[rd]sa").none?
23
31
  # No SSH key installed
@@ -1,3 +1,3 @@
1
1
  module Sumodev
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,59 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sumodev
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jan De Poorter
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-09-04 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-10-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: activesupport
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
35
31
  name: thor
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: net-ssh
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
36
55
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
38
57
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: net-scp
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
46
70
  type: :runtime
47
- version_requirements: *id002
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
48
78
  description: A command line tool to access all things you want
49
79
  email: jan@sumocoders.be
50
- executables:
80
+ executables:
51
81
  - sumo
52
82
  extensions: []
53
-
54
83
  extra_rdoc_files: []
55
-
56
- files:
84
+ files:
57
85
  - lib/sumodev/actions.rb
58
86
  - lib/sumodev/application.rb
59
87
  - lib/sumodev/command.rb
@@ -72,36 +100,27 @@ files:
72
100
  - Gemfile.lock
73
101
  homepage:
74
102
  licenses: []
75
-
76
103
  post_install_message:
77
104
  rdoc_options: []
78
-
79
- require_paths:
105
+ require_paths:
80
106
  - lib
81
- required_ruby_version: !ruby/object:Gem::Requirement
107
+ required_ruby_version: !ruby/object:Gem::Requirement
82
108
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
114
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
99
119
  requirements: []
100
-
101
120
  rubyforge_project:
102
- rubygems_version: 1.8.15
121
+ rubygems_version: 1.8.24
103
122
  signing_key:
104
123
  specification_version: 3
105
124
  summary: SumoCoders Developers gem
106
125
  test_files: []
107
-
126
+ has_rdoc: