Class: Dockly::Foreman
- Inherits:
-
Object
- Object
- Dockly::Foreman
- Includes:
- Util::DSL, Util::Logger::Mixin
- Defined in:
- lib/dockly/foreman.rb
Instance Method Summary collapse
Instance Method Details
#create! ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/dockly/foreman.rb', line 18 def create! ensure_present! :name, :init_dir, :build_dir, :procfile, :type, :user info "cleaning build dir" FileUtils.rm_rf(build_dir) FileUtils.mkdir_p(build_dir) cli = ::Foreman::CLI.new cli. = { :root => root_dir, :env => env, :procfile => procfile, :app => name, :log => log_dir, :prefix => prefix, :user => user, } info "exporting" cli.export(type, build_dir) end |