Class: DevSystem::EnvGenerator

Inherits:
Generator show all
Defined in:
lib/dev_system/generators/env_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Generator

get_generator_signatures

Methods inherited from Liza::Controller

color, inherited, on_connected

Methods inherited from Liza::Unit

const_missing, division, part, system, #system, test_class

Class Method Details

.call(args) ⇒ Object



3
4
5
6
7
# File 'lib/dev_system/generators/env_generator.rb', line 3

def self.call args
  log "args = #{args.inspect}"

  new.call args
end

Instance Method Details

#call(args) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/dev_system/generators/env_generator.rb', line 9

def call args
  log "args = #{args.inspect}"

  if app_env_exists?
    log "env files already exist".red.blink
  else
    write_env_files
  end

  puts
  log "done"
end