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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8446539611012b7efebab8fd52da0b8ab1321be
4
- data.tar.gz: 96f9443a411a6f7ed32f4127e62dbfeae82f8fc2
3
+ metadata.gz: 632b085712a4b7e94dacbe229d1f8caa948ed315
4
+ data.tar.gz: 1fa595655e03d867163d3cef36091a4ba3978b2d
5
5
  SHA512:
6
- metadata.gz: 317588df63149979a28abb55f5d5938dc74d6d5f4d77b8d0e1a07b38aaf631a0faa63039c829df72008b0245b965952499e649f4e4e2bd3f01209013cd71aaa0
7
- data.tar.gz: bb64255d9c3fcc79cc7596b6447b122f29010703f9e4dc1d59bb49b5fe41308aef67d10a4474eb68339ddf023cdb4888aebf925cbf0990a8ca151cfc4e84ea26
6
+ metadata.gz: f20e55fc078fd3336a69b3b85695e91e3d6b8e95c9073abc04d3776180bc93ce4524b2ee869a29978d290dc9c82f243a203bfe5b3f8b973a226b37f531f5c3c9
7
+ data.tar.gz: f3ee701c2b710028bdd96a7c64cf20f521bc57fdf03356f1f6d0293119a23959dd014588ebf3122dc39e337d791e0dce63204e863e3053c6232d7bdad3eb3dee
@@ -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
@@ -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
- logger.info("\nGood morning!\n\n")
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!
@@ -1,3 +1,3 @@
1
1
  module Autowow
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autowow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thisismydesign