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:

['.gitignore', 'config.ru', 'config/environment.rb', 'falcon.rb', 'gems.rb', 'Guardfile', 'bake.rb', 'spec/spec_helper.rb', 'spec/website_context.rb', 'spec/website_spec.rb']
DIRECTORIES =

Directories that should exist:

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

Directories that should be removed during upgrade process:

["access_log", "cache", "tmp", "Rakefile", "tasks", ".bowerrc"]
ROOT =

The root directory of the template site:

File.join(SETUP_ROOT, 'site')

Instance Method Summary collapse

Instance Method Details

#callObject



228
229
230
# File 'lib/utopia/command/site.rb', line 228

def call
	@command.call
end

#rootObject



224
225
226
# File 'lib/utopia/command/site.rb', line 224

def root
	@parent.root
end