Implement verbose mode
This commit is contained in:
1 parent
2b86bbf112
commit
8291f1bcfd
16 files changed
+183
-20
No files matched your search
@@ -2,6 +2,10 @@ module Producer
|
||||
module Core
|
||||
module Actions
|
||||
class Echo < Action
|
||||
def name
|
||||
'echo'
|
||||
end
|
||||
|
||||
def apply
|
||||
output.puts arguments.first
|
||||
end
|
||||
|
||||
@@ -2,6 +2,10 @@ module Producer
|
||||
module Core
|
||||
module Actions
|
||||
class FileAppend < Action
|
||||
def name
|
||||
'file_append'
|
||||
end
|
||||
|
||||
def apply
|
||||
fs.file_write path, combined_content
|
||||
end
|
||||
|
||||
@@ -2,6 +2,10 @@ module Producer
|
||||
module Core
|
||||
module Actions
|
||||
class FileReplaceContent < Action
|
||||
def name
|
||||
'file_replace_content'
|
||||
end
|
||||
|
||||
def apply
|
||||
fs.file_write path, replaced_content
|
||||
end
|
||||
|
||||
@@ -2,6 +2,10 @@ module Producer
|
||||
module Core
|
||||
module Actions
|
||||
class FileWriter < Action
|
||||
def name
|
||||
'file_write'
|
||||
end
|
||||
|
||||
def apply
|
||||
case arguments.size
|
||||
when 2
|
||||
|
||||
@@ -2,6 +2,10 @@ module Producer
|
||||
module Core
|
||||
module Actions
|
||||
class Mkdir < Action
|
||||
def name
|
||||
'mkdir'
|
||||
end
|
||||
|
||||
def apply
|
||||
case arguments.size
|
||||
when 1
|
||||
|
||||
@@ -2,6 +2,10 @@ module Producer
|
||||
module Core
|
||||
module Actions
|
||||
class ShellCommand < Action
|
||||
def name
|
||||
'sh'
|
||||
end
|
||||
|
||||
def apply
|
||||
remote.execute(arguments.first, output)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user