Class: Photish::Command::Init

Inherits:
Base
  • Object
show all
Defined in:
lib/photish/command/init.rb

Instance Method Summary collapse

Methods inherited from Base

#execute, #initialize

Methods included from Log::SafeBlock

#handle_errors

Methods included from Log::Loggable

#log

Constructor Details

This class inherits a constructor from Photish::Command::Base

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
# File 'lib/photish/command/init.rb', line 4

def run
  if runtime_config.example
     init_example
  else
     init_barebones
  end
  log.debug "Photish site initiated successfully"
end