yorobot 0.2.0 → 0.2.1
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 +4 -4
- data/lib/yorobot/github/git.rb +6 -1
- data/lib/yorobot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89c9982012e1437df536bb0e063b5858862e0c94
|
4
|
+
data.tar.gz: c7f0784616e3b51b52ddf2282923dea5c69f7a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21b7d37cd4161c10f3c6d37b844bce291d652a9803bf04a23f399c270bb488f8a96d4f09be135756b0ffbaff0c32be7ba91e9b5040c05d7aa5265ed060a07bce
|
7
|
+
data.tar.gz: 56528994071f6775450b4e7444cc255e665fb633dfc227c511ff8f4eaf2a82ca55a03d68344b9f4ad0360559aa62f2887079678c9f9e330cf4d97673795cd3cf
|
data/lib/yorobot/github/git.rb
CHANGED
@@ -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
|
-
|
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
|
#####
|
data/lib/yorobot/version.rb
CHANGED
@@ -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 =
|
9
|
+
PATCH = 1
|
10
10
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
11
11
|
|
12
12
|
def self.version
|