agile_check_in 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/agile_check_in.rb +2 -8
- data/lib/agile_check_in/version.rb +1 -1
- metadata +1 -1
data/lib/agile_check_in.rb
CHANGED
@@ -49,10 +49,8 @@ module AgileCheckIn
|
|
49
49
|
|
50
50
|
def self.pre_commit_tasks
|
51
51
|
if File::exists? '.agile_check_in.yml'
|
52
|
-
File.read
|
53
|
-
|
54
|
-
end
|
55
|
-
pre_commit_tasks = config_hash["pre_commit"]
|
52
|
+
file = File.read('.agile_check_in.yml')
|
53
|
+
pre_commit_tasks = YAML::load(file)["pre_commit"]
|
56
54
|
end
|
57
55
|
end
|
58
56
|
|
@@ -66,10 +64,6 @@ module AgileCheckIn
|
|
66
64
|
end
|
67
65
|
|
68
66
|
def self.push_and_test
|
69
|
-
puts "*******"
|
70
|
-
puts "About to test these changes:"
|
71
|
-
puts Git.local_commits
|
72
|
-
puts "*******"
|
73
67
|
if pre_commit_tasks
|
74
68
|
if system(pre_commit_tasks)
|
75
69
|
push_commits
|