lib/dev/Commands.rb in dev-1.0.148 vs lib/dev/Commands.rb in dev-1.0.149
- old
+ new
@@ -1,6 +1,6 @@
-["Compile","Replace","Setup","Test","Commit","Info","Update","Pull","Build"].each{ |f| require_relative("cmd/#{f}.rb") }
+["Clean","Compile","Replace","Setup","Test","Commit","Info","Update","Pull","Build"].each{ |f| require_relative("cmd/#{f}.rb") }
module Dev
class Commands < Hash
def initialize
@@ -49,10 +49,13 @@
else
value.each { |c| Dev::Commands.execute_cmd(c); sleep(0.5) }
end
end
+ def execute(c)
+ Dev::Commands::execute_cmd(c)
+ end
def self.execute_cmd(c)
# expand the command here....
command=Dev::Environment.expand_command(c)
puts_debug "command: " + command.to_s + " (in Project.execute_cmd)"
if c.include?('<%') && c.include?('%>')
@@ -70,13 +73,9 @@
call=Dev::SystemCall.new(hash)
end
call.puts_summary
end
end
-
-
-
-
def add
unless DEV[:src_glob].nil?
scm = Dev::Scm.new
return if scm.scm_type == "none"
\ No newline at end of file