lib/logical-construct/ground-control/setup.rb in logical-construct-0.0.1.localtesting vs lib/logical-construct/ground-control/setup.rb in logical-construct-0.0.1
- old
+ new
@@ -10,48 +10,39 @@
)
nil_fields :valise
def default_configuration(core)
+ super
core.copy_settings_to(self)
end
def define
in_namespace do
task :collect, [:address] do |t, args|
remote_server.address = args[:address]
- p :collect => remote_server
end
- task :local_setup => [:collect]
-
- task :remote_groundwork => [:local_setup]
-
- task :remote_config => [:remote_groundwork]
-
- task :remote_setup => [:remote_config]
-
+ task_spine(:collect, :local_setup, :remote_groundwork, :remote_config, :remote_setup)
task :complete => [:local_setup, :remote_setup]
end
desc "Set up a remote server to act as a Construct foundation"
task root_task,[:address] => self[:complete]
end
def default_subtasks
in_namespace do
CreateConstructDirectory.new(self)
- EnsureEnv.new(self)
- BundleSetup.new(self)
build_files = BuildFiles.new(self)
CopyFiles.new(self, build_files)
+ InstallInit.new(self)
end
end
end
end
end
-require 'logical-construct/ground-control/setup/bundle-setup'
+require 'logical-construct/ground-control/setup/build-files'
require 'logical-construct/ground-control/setup/create-construct-directory'
-require 'logical-construct/ground-control/setup/ensure-env'
require 'logical-construct/ground-control/setup/copy-files'
-require 'logical-construct/ground-control/setup/build-files'
+require 'logical-construct/ground-control/setup/install-init'