Class: Hem::Lib::Seed::Project
- Inherits:
-
Object
- Object
- Hem::Lib::Seed::Project
- Defined in:
- lib/hem/lib/seed/project.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Project
constructor
A new instance of Project.
- #setup(seed, config) ⇒ Object
Constructor Details
Instance Method Details
#setup(seed, config) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/hem/lib/seed/project.rb', line 14 def setup seed, config config = DeepStruct.wrap(config) project_path = config.project_path seed.update seed.export project_path, config Dir.chdir(project_path) do config.seed.version = seed.version config.hostname = "#{config.name}.dev" config.asset_bucket = "inviqa-assets-#{config.name}" config.vm = { :project_mount_path => "/vagrant" } config.tmp = {} Hem.project_path = project_path load_seed_init(config) @opts[:replacer].replace(project_path, config) config.delete :project_path config.delete :tmp Hem.detect_project_type project_path @opts[:project_config_file] = Hem.project_config_file @opts[:config_class].save @opts[:project_config_file], config end initialize_git project_path, config[:git_url] end |