Class: Opsk::Uncommited
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Opsk::Uncommited
show all
- Includes:
- Thorable, Thor::Actions
- Defined in:
- lib/opskeleton/uncommited.rb
Instance Method Summary
collapse
Methods included from Thorable
#artifact, #artifact_path, #check_root, included, #machines, #meta, #name, #type_of
Instance Method Details
#uncommited ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/opskeleton/uncommited.rb', line 11
def uncommited
Dir["modules/*"].reject{|o| not File.directory?(o)}.each do |d|
if File.exists?("#{d}/.git")
begin
cg = Opsk::Git.new(d,self)
if cg.changed?
say "Listing changes for #{d}:\n\n"
cg.report
end
rescue => e
say "Failed to check uncommited under #{d} due to #{e}"
end
end
end
end
|
#validate ⇒ Object
7
8
9
|
# File 'lib/opskeleton/uncommited.rb', line 7
def validate
check_root
end
|