Class: Utopia::Command::Site

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/utopia/command/site.rb

Overview

Local site setup commands.

Defined Under Namespace

Classes: Create, Update

Constant Summary collapse

CONFIGURATION_FILES =

Configuration files which should be installed/updated:

['.yarnrc', '.gitignore', 'config.ru', 'config/environment.rb', 'falcon.rb', 'Gemfile', 'Guardfile', 'Rakefile', 'tasks/yarn.rake', 'tasks/deploy.rake', 'tasks/development.rake', 'tasks/environment.rake', 'tasks/log.rake']
DIRECTORIES =

Directories that should exist:

["config", "lib", "pages", "public", "tasks"]
OLD_PATHS =

Directories that should be removed during upgrade process:

["access_log", "cache", "tmp", 'tasks/test.rake', 'tasks/utopia.rake', '.bowerrc', 'tasks/bower.rake']
ROOT =

The root directory of the template site:

File.join(SETUP_ROOT, 'site')

Instance Method Summary collapse

Instance Method Details

#callObject



208
209
210
# File 'lib/utopia/command/site.rb', line 208

def call
	@command.call
end

#rootObject



204
205
206
# File 'lib/utopia/command/site.rb', line 204

def root
	@parent.root
end