Class: Zync::Generators::AppGenerator

Inherits:
NamedBase
  • Object
show all
Defined in:
lib/zync-gen/generators/app.rb

Instance Method Summary collapse

Methods inherited from Base

base_root, default_source_root, source_root

Instance Method Details

#create_app_filesObject



88
89
90
# File 'lib/zync-gen/generators/app.rb', line 88

def create_app_files
  build(:app)
end

#create_config_filesObject



92
93
94
# File 'lib/zync-gen/generators/app.rb', line 92

def create_config_files
  build(:config)
end

#create_lib_filesObject



96
97
98
# File 'lib/zync-gen/generators/app.rb', line 96

def create_lib_files
  build(:lib)
end

#create_log_filesObject



100
101
102
# File 'lib/zync-gen/generators/app.rb', line 100

def create_log_files
  build(:log)
end

#create_rootObject



77
78
79
80
81
# File 'lib/zync-gen/generators/app.rb', line 77

def create_root
  self.destination_root = File.expand_path(name, destination_root)
  empty_directory '.'
  FileUtils.cd(destination_root)
end

#create_root_filesObject



83
84
85
86
# File 'lib/zync-gen/generators/app.rb', line 83

def create_root_files
  build(:configru)
  build(:gemfile)
end

#create_script_filesObject



104
105
106
# File 'lib/zync-gen/generators/app.rb', line 104

def create_script_files
  build(:script)
end

#create_tmp_filesObject



108
109
110
# File 'lib/zync-gen/generators/app.rb', line 108

def create_tmp_files
  build(:tmp)
end

#create_vendor_filesObject



112
113
114
# File 'lib/zync-gen/generators/app.rb', line 112

def create_vendor_files
  build(:vendor)
end