autowow 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/autowow/cli.rb +6 -0
- data/lib/autowow/vcs.rb +13 -4
- data/lib/autowow/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: 632b085712a4b7e94dacbe229d1f8caa948ed315
|
4
|
+
data.tar.gz: 1fa595655e03d867163d3cef36091a4ba3978b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f20e55fc078fd3336a69b3b85695e91e3d6b8e95c9073abc04d3776180bc93ce4524b2ee869a29978d290dc9c82f243a203bfe5b3f8b973a226b37f531f5c3c9
|
7
|
+
data.tar.gz: f3ee701c2b710028bdd96a7c64cf20f521bc57fdf03356f1f6d0293119a23959dd014588ebf3122dc39e337d791e0dce63204e863e3053c6232d7bdad3eb3dee
|
data/lib/autowow/cli.rb
CHANGED
@@ -13,6 +13,7 @@ module Autowow
|
|
13
13
|
map %w[au] => :add_upstream
|
14
14
|
map %w[gc] => :gem_clean
|
15
15
|
map %w[rv] => :ruby_versions
|
16
|
+
map %w[gr] => :greet
|
16
17
|
|
17
18
|
desc "branch_merged", "clean working branch and return to master"
|
18
19
|
def branch_merged
|
@@ -63,5 +64,10 @@ module Autowow
|
|
63
64
|
def ruby_versions
|
64
65
|
logger.info(Autowow::Ruby.used_versions)
|
65
66
|
end
|
67
|
+
|
68
|
+
desc "greet", "shows report of repos"
|
69
|
+
def greet
|
70
|
+
Autowow::Vcs.greet
|
71
|
+
end
|
66
72
|
end
|
67
73
|
end
|
data/lib/autowow/vcs.rb
CHANGED
@@ -92,6 +92,18 @@ module Autowow
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
def self.greet(latest_project_info = nil)
|
96
|
+
logger.info("\nGood morning!\n\n")
|
97
|
+
if is_git?(status_dry)
|
98
|
+
logger.error('Inside repo, cannot show report about all repos.')
|
99
|
+
else
|
100
|
+
latest_project_info ||= get_latest_project_info
|
101
|
+
logger.info(latest_project_info)
|
102
|
+
check_projects_older_than(1, :months)
|
103
|
+
end
|
104
|
+
logger.info("\nThe following Ruby versions are not used by any projects, maybe consider removing them?\n #{Ruby.obsolete_versions.join("\n ")}")
|
105
|
+
end
|
106
|
+
|
95
107
|
def self.hi
|
96
108
|
logger.error("In a git repository. Try 1 level higher.") && return if is_git?(status_dry)
|
97
109
|
latest_project_info = get_latest_project_info
|
@@ -103,10 +115,7 @@ module Autowow
|
|
103
115
|
update_project
|
104
116
|
end
|
105
117
|
end
|
106
|
-
|
107
|
-
logger.info(latest_project_info)
|
108
|
-
check_projects_older_than(1, :months)
|
109
|
-
logger.info("\nThe following Ruby versions are not used by any projects, maybe consider removing them?\n #{Ruby.obsolete_versions.join("\n ")}")
|
118
|
+
greet(latest_project_info)
|
110
119
|
end
|
111
120
|
|
112
121
|
def self.hi!
|
data/lib/autowow/version.rb
CHANGED