Class: Opsk::Commit
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Opsk::Commit
show all
- Includes:
- Thorable, Thor::Actions
- Defined in:
- lib/opskeleton/commit.rb
Instance Method Summary
collapse
Methods included from Thorable
#artifact, #artifact_path, #check_root, included, #machines, #meta, #name, #type_of
Instance Method Details
#commit ⇒ Object
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/opskeleton/commit.rb', line 51
def commit
Dir["modules/*"].reject{|o| not File.directory?(o)}.each do |d|
if File.exists?("#{d}/.git")
begin
cg = Opsk::CommitGit.new(d,options,self)
if cg.changed?
say "Listing changes for #{d}:\n\n"
cg.report
cg.master_commit(d)
end
rescue => e
say "Failed to commit #{d} due to #{e}"
end
end
end
end
|
#validate ⇒ Object
46
47
48
|
# File 'lib/opskeleton/commit.rb', line 46
def validate
check_root
end
|