Module: Hearts

Defined in:
lib/frame.rb

Overview

heats module

Class Method Summary collapse

Class Method Details

.appmakerObject



116
117
118
119
120
121
122
123
124
125
# File 'lib/frame.rb', line 116

def appmaker
  require 'install'
  begin
    InstallerRunner.appmakers
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.appmakerbrObject



127
128
129
130
131
132
133
134
135
136
# File 'lib/frame.rb', line 127

def appmakerbr
  require 'install'
  begin
    InstallerRunner.app_maker_branches
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.cookerObject



39
40
41
42
43
44
45
46
47
48
# File 'lib/frame.rb', line 39

def cooker
  require 'install'
  begin
    InstallerRunner.cook
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.createrObject



28
29
30
31
32
33
34
35
36
37
# File 'lib/frame.rb', line 28

def creater
  require 'install'
  begin
    InstallerRunner.create
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.databasesObject



105
106
107
108
109
110
111
112
113
114
# File 'lib/frame.rb', line 105

def databases
  require 'install'
  begin
    InstallerRunner.database
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.defaultObject



140
141
142
143
# File 'lib/frame.rb', line 140

def default
  str = 'nyasocom_frame is a framework, generating templete for existing github project.'
  puts str
end

.documentsObject



145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/frame.rb', line 145

def documents
  puts text = <<-EOS
# nyasocom framework information
heats

# version notation
heats -v

# nyasocom_oss project template generated
heats oss

# nyasocom_two project template generated
heats two

# purplehaze project template generated
heats purple

# hyokaproject templete generated
heats hyoka

# nyasocom_sun_app project template generated
heats app

# template generation for nyasocom_oss
heats new [Folder_Name]
heats new example

# template generation for nyasocom_two
heats cook [Folder_Name]
heats cook example

# template generation for purplehaze
heats create [Folder_Name]
heats create example

# nyasocom_pg project template generated
heats db postgresql
heats db --pg

# github project templete generated
heats make nyasocom takkii nyasocom_oss

# github project templete generated + branch_name
heats branch nyasocom takkii nyasocom_oss main

# HELP
heats -h
EOS
end

.downloaderObject



50
51
52
53
54
55
56
57
58
59
# File 'lib/frame.rb', line 50

def downloader
  require 'install'
  begin
    InstallerRunner.download
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.hyokaproject_downloaderObject



94
95
96
97
98
99
100
101
102
103
# File 'lib/frame.rb', line 94

def hyokaproject_downloader
  require 'install'
  begin
    InstallerRunner.hyokaproject_download
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.installerObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/frame.rb', line 17

def installer
  require 'install'
  begin
    InstallerRunner.install
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.nyasocom_app_downloaderObject



83
84
85
86
87
88
89
90
91
92
# File 'lib/frame.rb', line 83

def nyasocom_app_downloader
  require 'install'
  begin
    InstallerRunner.nyasocom_app_download
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.nyasocom_two_downloaderObject



61
62
63
64
65
66
67
68
69
70
# File 'lib/frame.rb', line 61

def nyasocom_two_downloader
  require 'install'
  begin
    InstallerRunner.nyasocom_two_download
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.purplehaze_downloaderObject



72
73
74
75
76
77
78
79
80
81
# File 'lib/frame.rb', line 72

def purplehaze_downloader
  require 'install'
  begin
    InstallerRunner.purplehaze_download
  rescue LoadError => e
    puts e.backtrace
  ensure
    GC.auto_compact
  end
end

.versionObject



12
13
14
15
# File 'lib/frame.rb', line 12

def version
  print Frame::FRAME_VERSION
  puts ' : [nyasocom_framework_version] '
end