class Dockly::Foreman
Public Instance Methods
create!()
click to toggle source
# 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.options = { :root => root_dir, :env => env, :procfile => procfile, :app => name, :log => log_dir, :prefix => prefix, :user => user, } info "exporting" cli.export(type, build_dir) end