Class: WindClutter::CLI::Commands::Project::DumpPath
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- WindClutter::CLI::Commands::Project::DumpPath
- Includes:
- Util
- Defined in:
- lib/windclutter/cli/commands/project.rb
Overview
Dump the generated CSS to the specified file
Instance Method Summary collapse
Instance Method Details
#call(path:) ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'lib/windclutter/cli/commands/project.rb', line 68 def call(path:, **) active_project = Config.read('active_project') return puts 'No project specified. Select a project with `use` command.'.yellow if active_project.nil? dump_path = File.(path, Dir.pwd) Config.update_project(active_project, 'dump_path', dump_path) end |