Class: Dotum::CLI
- Inherits:
-
Object
- Object
- Dotum::CLI
- Defined in:
- lib/dotum/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #exec! ⇒ Object
-
#initialize(args) ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
Class Method Details
.exec(args) ⇒ Object
5 6 7 |
# File 'lib/dotum/cli.rb', line 5 def self.exec(args) new(args).exec! end |
Instance Method Details
#exec! ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/dotum/cli.rb', line 17 def exec! context = Dotum::Context.new( # :no_remote => true, :state_dir => @state_dir, :target_dir => @target_dir, :logger => Dotum::Logger.new ) unless @package_dir.directory? puts puts "#{@package_dir.pretty} doesn't exist! Creating for now..." @package_dir.mkpath! end Dotum::Rules::UseRepo.exec(context, @package_dir) print "\n\n" end |