Class: Worktree::Command::Init
- Inherits:
-
Object
- Object
- Worktree::Command::Init
- Defined in:
- lib/worktree/command/init.rb
Overview
:nodoc:
Instance Method Summary collapse
- #do! ⇒ Object
-
#initialize(uri, name:, path:, remote: 'origin') ⇒ Init
constructor
A new instance of Init.
Constructor Details
#initialize(uri, name:, path:, remote: 'origin') ⇒ Init
Returns a new instance of Init.
6 7 8 9 10 11 |
# File 'lib/worktree/command/init.rb', line 6 def initialize(uri, name:, path:, remote: 'origin') @uri = uri @path = File. path @remote = remote @name = name || build_name end |