Class: Brut::CLI::Apps::New::Ops::Mkdir
- Defined in:
- lib/brut/cli/apps/new/ops/mkdir.rb
Instance Method Summary collapse
-
#call ⇒ Object
-
#initialize(path) ⇒ Mkdir
constructor
A new instance of Mkdir.
-
#to_s ⇒ Object
Methods inherited from BaseOp
dry_run=, dry_run?, #dry_run?, fileutils_args, #fileutils_args
Constructor Details
#initialize(path) ⇒ Mkdir
Returns a new instance of Mkdir.
4 5 6 |
# File 'lib/brut/cli/apps/new/ops/mkdir.rb', line 4 def initialize(path) @path = path end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/brut/cli/apps/new/ops/mkdir.rb', line 8 def call FileUtils.mkdir_p(@path, **fileutils_args) end |
#to_s ⇒ Object
12 |
# File 'lib/brut/cli/apps/new/ops/mkdir.rb', line 12 def to_s = "Make Dir '#{@path}'" |