yorobot 0.2.0 → 0.2.1

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: 503913587cfe3eb47d27dfbea06bbc851f672e3d
4
- data.tar.gz: 2ea249106e91274f5d93cc5ea86bf70846f96fca
3
+ metadata.gz: 89c9982012e1437df536bb0e063b5858862e0c94
4
+ data.tar.gz: c7f0784616e3b51b52ddf2282923dea5c69f7a06
5
5
  SHA512:
6
- metadata.gz: 3e3754ff5eff7bce1d987423fe28ec8641c9a8d7cf6624338b548457750d01e89892cde5ab20883ad5e783dfacda6172e970c319c9a48913f31682cbdad272b9
7
- data.tar.gz: 7fc891e0e027c9b14b1af691728558a22a5fd88ddbcd88d4c1891a67616863beab897a31c9c2d6ebc24877bd01378fcce2892c69651146005eca59302cb7b602
6
+ metadata.gz: 21b7d37cd4161c10f3c6d37b844bce291d652a9803bf04a23f399c270bb488f8a96d4f09be135756b0ffbaff0c32be7ba91e9b5040c05d7aa5265ed060a07bce
7
+ data.tar.gz: 56528994071f6775450b4e7444cc255e665fb633dfc227c511ff8f4eaf2a82ca55a03d68344b9f4ad0360559aa62f2887079678c9f9e330cf4d97673795cd3cf
@@ -10,6 +10,7 @@ class Setup < Step
10
10
  chmod 600 ~/.ssh/id_rsa
11
11
  echo "ssh directory - ~/.ssh:"
12
12
  ls -la ~/.ssh
13
+ # ssh -vT git@github.com
13
14
 
14
15
  # check git
15
16
  git --version
@@ -21,7 +22,7 @@ class Setup < Step
21
22
  def call
22
23
  ##############
23
24
  ## setup ssh
24
- Dir.mkdir( '~/.ssh' ) unless Dir.exist?( '~/.ssh' )
25
+
25
26
  ssh_key = ENV['SSH_KEY']
26
27
  if ssh_key.nil?
27
28
  STDERR.puts "!! ERROR - required SSH_KEY env(ironment) variable missing"
@@ -31,6 +32,9 @@ class Setup < Step
31
32
  STDERR.puts "!! ERROR - ssh key >~/.ssh/id_rsa< already exists"
32
33
  exit 1
33
34
  end
35
+
36
+ ## make sure path exists
37
+ FileUtils.mkdir_p( '~/.ssh' ) unless Dir.exist?( '~/.ssh' )
34
38
  File.open( '~/.ssh/id_rsa', 'w:utf-8' ) do |f|
35
39
  f.write( ssh_key )
36
40
  end
@@ -39,6 +43,7 @@ class Setup < Step
39
43
  puts res ## returns number of files processed; should be 1 - assert - why? why not?
40
44
 
41
45
  Computer::Shell.run( %Q{ls -la ~/.ssh} )
46
+ # ssh -vT git@github.com
42
47
 
43
48
 
44
49
  #####
@@ -6,7 +6,7 @@
6
6
  module YorobotCore ## todo/check: rename GittiBase or GittiMeta or such - why? why not?
7
7
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
8
8
  MINOR = 2
9
- PATCH = 0
9
+ PATCH = 1
10
10
  VERSION = [MAJOR,MINOR,PATCH].join('.')
11
11
 
12
12
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yorobot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer