Class: SwiftLibTemplater::CopyTemplateCommand
- Inherits:
-
Object
- Object
- SwiftLibTemplater::CopyTemplateCommand
- Defined in:
- lib/swift_lib_templater/open_projet_command.rb,
lib/swift_lib_templater/copy_template_command.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(dest) ⇒ CopyTemplateCommand
constructor
A new instance of CopyTemplateCommand.
Constructor Details
#initialize(dest) ⇒ CopyTemplateCommand
Returns a new instance of CopyTemplateCommand.
4 5 6 |
# File 'lib/swift_lib_templater/open_projet_command.rb', line 4 def initialize(dir) @dir = dir end |
Instance Method Details
#execute ⇒ Object
8 9 10 |
# File 'lib/swift_lib_templater/open_projet_command.rb', line 8 def execute() systemWithoutOutput("open '#{@dir}'") end |