orphic 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/orphic/cli.rb +3 -0
- data/lib/orphic/cli/district.rb +12 -13
- data/lib/orphic/cli/spools.rb +21 -49
- data/lib/orphic/cli/sprites/cursor.rb +81 -0
- data/lib/orphic/cli/sprites/flash.rb +6 -0
- data/lib/orphic/cli/sprites/geek.rb +21 -0
- data/lib/orphic/cli/sprites/paji.rb +33 -0
- data/lib/orphic/version.rb +1 -1
- data/orphic.gemspec +2 -1
- metadata +28 -10
- data/lib/orphic/sprites/cursor.rb +0 -56
- data/lib/orphic/sprites/paji.rb +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ada9df94e25136b9bc904ccb6545f0c58c12746769cdee512f5ea00c7833d243
|
4
|
+
data.tar.gz: 878409e5056c6589c44e3bd627504070cb670a9e87990acc98221b98870241cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 701b671bad7165eecaebcfd694348382551eec03f828e3e96c664d4cb53b47a47dd489cc30b74aedec66b1539edfc7ed19452a6ab2d64f2e929404db48fd3b7a
|
7
|
+
data.tar.gz: 38f24720c83ff341765c7620c96163dfa87e5e2770222a545810cb899143c8d023280f3caf4327ece23074d56769f3e9f273aafdab87d4512a09e5875edba23f
|
data/lib/orphic/cli.rb
CHANGED
@@ -2,6 +2,7 @@ require 'thor'
|
|
2
2
|
require 'orphic/cli/node'
|
3
3
|
require 'orphic/cli/district'
|
4
4
|
require 'orphic/cli/type'
|
5
|
+
require 'orphic/cli/spools'
|
5
6
|
require 'cli/ui'
|
6
7
|
|
7
8
|
module Orphic
|
@@ -26,5 +27,7 @@ module Orphic
|
|
26
27
|
subcommand "map", Orphic::OrphicCli::District
|
27
28
|
desc "media TYPE", "Interface with various media types"
|
28
29
|
subcommand "media", Orphic::OrphicCli::Type
|
30
|
+
desc "spools CURSOR", "Access spools with Paji and Cursor"
|
31
|
+
subcommand "spools", Orphic::OrphicCli::Spools
|
29
32
|
end
|
30
33
|
end
|
data/lib/orphic/cli/district.rb
CHANGED
@@ -43,21 +43,20 @@ module Orphic
|
|
43
43
|
option :enthuse
|
44
44
|
option :clarity
|
45
45
|
def createDistrict ( createDistrict )
|
46
|
-
puts "Awake District info" if options[:awake]
|
47
|
-
puts "Grow District info" if options[:grow]
|
48
|
-
puts "Discover District info" if options[:discover]
|
49
|
-
puts "Trust District info" if options[:trust]
|
50
|
-
puts "Truth District info" if options[:truth]
|
51
|
-
puts "Magic District info" if options[:magic]
|
52
|
-
puts "Poetry District info" if options[:poetry]
|
53
|
-
puts "Drive District info" if options[:drive]
|
54
|
-
puts "Will District info" if options[:will]
|
55
|
-
puts "Loyal District info" if options[:loyal]
|
56
|
-
puts "Enthuse District info" if options[:enthuse]
|
57
|
-
puts "Clarity District info" if options[:clarity]
|
58
46
|
# implement createDistrict
|
59
47
|
CLI::UI::Frame.open( "Map :: District : Create " + createDistrict ) do
|
60
|
-
puts "
|
48
|
+
puts "Awake District info" if options[:awake]
|
49
|
+
puts "Grow District info" if options[:grow]
|
50
|
+
puts "Discover District info" if options[:discover]
|
51
|
+
puts "Trust District info" if options[:trust]
|
52
|
+
puts "Truth District info" if options[:truth]
|
53
|
+
puts "Magic District info" if options[:magic]
|
54
|
+
puts "Poetry District info" if options[:poetry]
|
55
|
+
puts "Drive District info" if options[:drive]
|
56
|
+
puts "Will District info" if options[:will]
|
57
|
+
puts "Loyal District info" if options[:loyal]
|
58
|
+
puts "Enthuse District infor" if options[:enthuse]
|
59
|
+
puts ":clarity district info" if options[:clarity]
|
61
60
|
end
|
62
61
|
end
|
63
62
|
end
|
data/lib/orphic/cli/spools.rb
CHANGED
@@ -1,56 +1,28 @@
|
|
1
|
+
require 'orphic/cli/sprites/cursor'
|
2
|
+
require 'orphic/cli/sprites/paji'
|
3
|
+
require 'orphic/cli/sprites/flash'
|
4
|
+
|
1
5
|
module Orphic
|
2
6
|
module OrphicCli
|
3
|
-
class
|
4
|
-
desc "
|
5
|
-
long_desc <<-
|
6
|
-
Commands for a specific
|
7
|
+
class Spools < Thor
|
8
|
+
desc "spools", "Access varying sprites and/or districts with Cursor and Paji."
|
9
|
+
long_desc <<-SPOOLS
|
10
|
+
Commands for a specific SPOOL.
|
7
11
|
|
8
|
-
|
9
|
-
|
10
|
-
def
|
11
|
-
# implement
|
12
|
-
CLI::UI::Frame.open( "
|
13
|
-
puts "#{
|
14
|
-
end
|
15
|
-
end
|
16
|
-
desc "createMedia", "Create a new file with a specific TYPE"
|
17
|
-
long_desc <<-CREATE_MEDIA
|
18
|
-
Create a new file with createMedia.
|
19
|
-
CREATE_MEDIA
|
20
|
-
option :mp3
|
21
|
-
option :mp4
|
22
|
-
option :flac
|
23
|
-
option :exe
|
24
|
-
option :app
|
25
|
-
option :wav
|
26
|
-
option :mkv
|
27
|
-
option :bin
|
28
|
-
option :jar
|
29
|
-
option :rb
|
30
|
-
option :js
|
31
|
-
option :ts
|
32
|
-
option :html
|
33
|
-
option :css
|
34
|
-
def createMedia ( createMedia )
|
35
|
-
puts "MP3 file created" if options[:mp3]
|
36
|
-
puts "MP4 file created" if options[:mp4]
|
37
|
-
puts "FLAC file created" if options[:flac]
|
38
|
-
puts "EXE file created" if options[:exe]
|
39
|
-
puts "APP file created" if options[:app]
|
40
|
-
puts "WAV file created" if options[:wav]
|
41
|
-
puts "MKV file created" if options[:mkv]
|
42
|
-
puts "BIN file created" if options[:bin]
|
43
|
-
puts "JAR file created" if options[:jar]
|
44
|
-
puts "RB file created" if options[:rb]
|
45
|
-
puts "JS file created" if options[:js]
|
46
|
-
puts "TS file created" if options[:ts]
|
47
|
-
puts "HTML file created" if options[:html]
|
48
|
-
puts "CSS file created" if options[:css]
|
49
|
-
# implement createDistrict
|
50
|
-
CLI::UI::Frame.open( "Map :: Media : Create " + createMedia ) do
|
51
|
-
puts "#{createMedia}"
|
12
|
+
View your current SPOOL by passing a SPOOL argument, use <Cursor> and <Paji> subcommands for accessing different SPOOLs.
|
13
|
+
SPOOLS
|
14
|
+
def spools( viewSpool )
|
15
|
+
# implement viewSpool
|
16
|
+
CLI::UI::Frame.open( "Spool :: " + viewSpool ) do
|
17
|
+
puts "#{viewSpool}"
|
52
18
|
end
|
53
19
|
end
|
20
|
+
desc "spools Cursor", "Access a spool with Cursor"
|
21
|
+
subcommand "Cursor", Orphic::OrphicCli::Cursor
|
22
|
+
desc "spools Paji", "Access a spool with Paji"
|
23
|
+
subcommand "Paji", Orphic::OrphicCli::Paji
|
24
|
+
# desc "spools thread Flash", OrphicCli::Thread::Cursor
|
25
|
+
# subcommand "thread Flash", OrphicCli::Thread::Paji
|
54
26
|
end
|
55
27
|
end
|
56
|
-
end
|
28
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require 'mongo'
|
2
|
+
|
3
|
+
module Orphic
|
4
|
+
module OrphicCli
|
5
|
+
class Cursor < Thor
|
6
|
+
desc "posCursor", "Cursory iterations."
|
7
|
+
long_desc <<-POS_CURSOR
|
8
|
+
Cursory iterations with mongoDB, SQL, and other datasets. Cursor helps
|
9
|
+
find specific info, whereas Paji is better suited for unknown parameters.
|
10
|
+
|
11
|
+
Learn more about DB commands with <Cursor mongoDb help>.
|
12
|
+
POS_CURSOR
|
13
|
+
def posCursor( currentCursor )
|
14
|
+
# implement viewType
|
15
|
+
CLI::UI::Frame.open( "Cursor :: Position : " + currentCursor ) do
|
16
|
+
puts "#{currentCursor}"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
desc "GeekCursor","Geek traversal."
|
20
|
+
long_desc <<-GEEK_CURSOR
|
21
|
+
Info about Geek's instructions, discs, and audio or video if supplied.
|
22
|
+
GEEK_CURSOR
|
23
|
+
option :ins
|
24
|
+
option :disc
|
25
|
+
option :audio
|
26
|
+
option :video
|
27
|
+
def GeekCursor ( currentGeek )
|
28
|
+
CLI::UI::Frame.open( "Cursor :: Geek : " + currentGeek ) do
|
29
|
+
puts "#{currentGeek}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
desc "mongoDb <mongoURL>", "CRUD commands for mongoDB"
|
33
|
+
long_desc <<-MONGO_DB
|
34
|
+
Pass the mongo URL as an argument to access it.
|
35
|
+
|
36
|
+
Create with --create, read with --read, update with --update, and delete with --delete.
|
37
|
+
MONGO_DB
|
38
|
+
option :create
|
39
|
+
option :read
|
40
|
+
option :update
|
41
|
+
option :delete
|
42
|
+
def mongoDb ( mongoURL )
|
43
|
+
# mongoDB client setup
|
44
|
+
client = Mongo::Client.new( mongoURL )
|
45
|
+
collection = client[:people]
|
46
|
+
|
47
|
+
# example doc for testing
|
48
|
+
doc = {
|
49
|
+
name: 'Steve',
|
50
|
+
hobbies: [ 'hiking', 'tennis', 'fly fishing' ],
|
51
|
+
siblings: {
|
52
|
+
brothers: 0,
|
53
|
+
sisters: 1
|
54
|
+
}
|
55
|
+
}
|
56
|
+
if options[:create]
|
57
|
+
result = collection.insert_one(doc)
|
58
|
+
CLI::UI::Frame.open("Cursor :: MongoDB :: " + mongoURL + ": Create ")
|
59
|
+
puts result.n
|
60
|
+
end
|
61
|
+
if options[:read]
|
62
|
+
collection.find.each do |document|
|
63
|
+
#=> Yields a BSON::Document.
|
64
|
+
CLI::UI::Frame.open( "Cursor :: MongoDB :: " + mongoURL + ": Read ")
|
65
|
+
puts document
|
66
|
+
end
|
67
|
+
end
|
68
|
+
if options[:update]
|
69
|
+
puts "update put"
|
70
|
+
end
|
71
|
+
if options[:delete]
|
72
|
+
puts "Delete option"
|
73
|
+
end
|
74
|
+
# implement mongoURL for viewing current info
|
75
|
+
CLI::UI::Frame.open( "Cursor :: Mongo :: DB : " + mongoURL ) do
|
76
|
+
puts "#{mongoURL}"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# pseudo-code
|
2
|
+
class Data
|
3
|
+
|
4
|
+
# required datasets
|
5
|
+
def i(ins)
|
6
|
+
# if (Cursor <= i) then
|
7
|
+
puts "i !<= 0"
|
8
|
+
$ins = "ins"
|
9
|
+
return $ins
|
10
|
+
end
|
11
|
+
# instructions, bootload 'this'
|
12
|
+
def d(disc)
|
13
|
+
$d = "disc"
|
14
|
+
puts $d
|
15
|
+
puts "disc"
|
16
|
+
end
|
17
|
+
# check if additional instructions available, if not disconnect
|
18
|
+
# not required but recommended for when things break
|
19
|
+
$a = __FILE__
|
20
|
+
$v = __LINE__
|
21
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Orphic
|
2
|
+
module OrphicCli
|
3
|
+
class Paji < Thor
|
4
|
+
desc "posPaji", "Paginated info."
|
5
|
+
long_desc <<-POS_PAJI
|
6
|
+
Positional info about pagination.
|
7
|
+
|
8
|
+
Paji differs from Cursor in that it gives relational data for unspecific
|
9
|
+
fetching.
|
10
|
+
POS_PAJI
|
11
|
+
def posPaji( currentPaji )
|
12
|
+
# implement posPaji
|
13
|
+
CLI::UI::Frame.open( "Paji :: Position : " + currentPaji ) do
|
14
|
+
puts "#{currentPaji}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
desc "updatePaji", "Update your Paji to a different location."
|
18
|
+
long_desc <<-UPDATE_PAJI
|
19
|
+
Update an existing Paji to the previous or next location available.
|
20
|
+
UPDATE_PAJI
|
21
|
+
option :previous
|
22
|
+
option :next
|
23
|
+
def updatePaji ( )
|
24
|
+
puts "previous option passed" if options[:previous]
|
25
|
+
puts "next option passed" if options[:next]
|
26
|
+
# implement updatePaji
|
27
|
+
CLI::UI::Frame.open( "Paji :: Update") do
|
28
|
+
puts "Paji updated"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/orphic/version.rb
CHANGED
data/orphic.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.authors = ["Kyle OBrien"]
|
7
7
|
spec.email = ["obrienk@webbhost.net"]
|
8
8
|
|
9
|
-
spec.description = "Orphic is a toolkit for building boilerplate interfaces
|
9
|
+
spec.description = "Orphic is a toolkit and mechanism for building boilerplate interfaces, plugins, and streaming content"
|
10
10
|
spec.summary = spec.description
|
11
11
|
spec.homepage = "https://orphic.enterprises/orphic-cli"
|
12
12
|
spec.license = "MIT"
|
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency "cli-ui", "~> 1.4"
|
33
33
|
spec.add_dependency "stripe", "~> 5.28"
|
34
34
|
spec.add_dependency "rails", "~> 6.0.3"
|
35
|
+
spec.add_dependency "mongo", "~> 2.14.0.rc1"
|
35
36
|
spec.add_development_dependency "rspec"
|
36
37
|
spec.add_development_dependency "rspec-nc"
|
37
38
|
spec.add_development_dependency "guard"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orphic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle OBrien
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 6.0.3
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mongo
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.14.0.rc1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.14.0.rc1
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rspec
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,7 +192,8 @@ dependencies:
|
|
178
192
|
- - ">="
|
179
193
|
- !ruby/object:Gem::Version
|
180
194
|
version: '0'
|
181
|
-
description: Orphic is a toolkit for building boilerplate interfaces
|
195
|
+
description: Orphic is a toolkit and mechanism for building boilerplate interfaces,
|
196
|
+
plugins, and streaming content
|
182
197
|
email:
|
183
198
|
- obrienk@webbhost.net
|
184
199
|
executables:
|
@@ -204,9 +219,11 @@ files:
|
|
204
219
|
- lib/orphic/cli/district.rb
|
205
220
|
- lib/orphic/cli/node.rb
|
206
221
|
- lib/orphic/cli/spools.rb
|
222
|
+
- lib/orphic/cli/sprites/cursor.rb
|
223
|
+
- lib/orphic/cli/sprites/flash.rb
|
224
|
+
- lib/orphic/cli/sprites/geek.rb
|
225
|
+
- lib/orphic/cli/sprites/paji.rb
|
207
226
|
- lib/orphic/cli/type.rb
|
208
|
-
- lib/orphic/sprites/cursor.rb
|
209
|
-
- lib/orphic/sprites/paji.rb
|
210
227
|
- lib/orphic/version.rb
|
211
228
|
- orphic.gemspec
|
212
229
|
- package.json
|
@@ -219,9 +236,9 @@ metadata:
|
|
219
236
|
bug_tracker_uri: https://github.com/orphic-inc/ruby-orphic-cli/issues
|
220
237
|
changlog_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/CHANGELOG.md
|
221
238
|
documentation_uri: https://github.com/orphic-inc/ruby-orphic-cli/blob/main/README.md
|
222
|
-
source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.
|
239
|
+
source_code_uri: https://github.com/orphic-inc/ruby-orphic-cli/tree/v0.1.8
|
223
240
|
wiki_uri: https://github.com/orphic-inc/ruby-orphic-cli/wiki
|
224
|
-
post_install_message:
|
241
|
+
post_install_message:
|
225
242
|
rdoc_options: []
|
226
243
|
require_paths:
|
227
244
|
- lib
|
@@ -237,7 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
254
|
version: '0'
|
238
255
|
requirements: []
|
239
256
|
rubygems_version: 3.1.4
|
240
|
-
signing_key:
|
257
|
+
signing_key:
|
241
258
|
specification_version: 4
|
242
|
-
summary: Orphic is a toolkit for building boilerplate interfaces
|
259
|
+
summary: Orphic is a toolkit and mechanism for building boilerplate interfaces, plugins,
|
260
|
+
and streaming content
|
243
261
|
test_files: []
|
@@ -1,56 +0,0 @@
|
|
1
|
-
module Orphic
|
2
|
-
module OrphicCli
|
3
|
-
class Type < Thor
|
4
|
-
desc "type", "Interface with specific media TYPEs like mp4, mp3, flac, exe, and app."
|
5
|
-
long_desc <<-TYPE
|
6
|
-
Commands for a specific TYPE.
|
7
|
-
|
8
|
-
Learn more about a type with <type> help. Supported types include: mp3, mp4, flac, exe, app, wav, mkv, bin, jar, rb, js, ts, html, css.
|
9
|
-
TYPE
|
10
|
-
def type( viewType )
|
11
|
-
# implement viewType
|
12
|
-
CLI::UI::Frame.open( "Media :: Type : " + viewType ) do
|
13
|
-
puts "#{viewType}"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
desc "createMedia", "Create a new file with a specific TYPE"
|
17
|
-
long_desc <<-CREATE_MEDIA
|
18
|
-
Create a new file with createMedia.
|
19
|
-
CREATE_MEDIA
|
20
|
-
option :mp3
|
21
|
-
option :mp4
|
22
|
-
option :flac
|
23
|
-
option :exe
|
24
|
-
option :app
|
25
|
-
option :wav
|
26
|
-
option :mkv
|
27
|
-
option :bin
|
28
|
-
option :jar
|
29
|
-
option :rb
|
30
|
-
option :js
|
31
|
-
option :ts
|
32
|
-
option :html
|
33
|
-
option :css
|
34
|
-
def createMedia ( createMedia )
|
35
|
-
puts "MP3 file created" if options[:mp3]
|
36
|
-
puts "MP4 file created" if options[:mp4]
|
37
|
-
puts "FLAC file created" if options[:flac]
|
38
|
-
puts "EXE file created" if options[:exe]
|
39
|
-
puts "APP file created" if options[:app]
|
40
|
-
puts "WAV file created" if options[:wav]
|
41
|
-
puts "MKV file created" if options[:mkv]
|
42
|
-
puts "BIN file created" if options[:bin]
|
43
|
-
puts "JAR file created" if options[:jar]
|
44
|
-
puts "RB file created" if options[:rb]
|
45
|
-
puts "JS file created" if options[:js]
|
46
|
-
puts "TS file created" if options[:ts]
|
47
|
-
puts "HTML file created" if options[:html]
|
48
|
-
puts "CSS file created" if options[:css]
|
49
|
-
# implement createDistrict
|
50
|
-
CLI::UI::Frame.open( "Map :: Media : Create " + createMedia ) do
|
51
|
-
puts "#{createMedia}"
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
data/lib/orphic/sprites/paji.rb
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
module Orphic
|
2
|
-
module OrphicCli
|
3
|
-
class Type < Thor
|
4
|
-
desc "type", "Interface with specific media TYPEs like mp4, mp3, flac, exe, and app."
|
5
|
-
long_desc <<-TYPE
|
6
|
-
Commands for a specific TYPE.
|
7
|
-
|
8
|
-
Learn more about a type with <type> help. Supported types include: mp3, mp4, flac, exe, app, wav, mkv, bin, jar, rb, js, ts, html, css.
|
9
|
-
TYPE
|
10
|
-
def type( viewType )
|
11
|
-
# implement viewType
|
12
|
-
CLI::UI::Frame.open( "Media :: Type : " + viewType ) do
|
13
|
-
puts "#{viewType}"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
desc "createMedia", "Create a new file with a specific TYPE"
|
17
|
-
long_desc <<-CREATE_MEDIA
|
18
|
-
Create a new file with createMedia.
|
19
|
-
CREATE_MEDIA
|
20
|
-
option :mp3
|
21
|
-
option :mp4
|
22
|
-
option :flac
|
23
|
-
option :exe
|
24
|
-
option :app
|
25
|
-
option :wav
|
26
|
-
option :mkv
|
27
|
-
option :bin
|
28
|
-
option :jar
|
29
|
-
option :rb
|
30
|
-
option :js
|
31
|
-
option :ts
|
32
|
-
option :html
|
33
|
-
option :css
|
34
|
-
def createMedia ( createMedia )
|
35
|
-
puts "MP3 file created" if options[:mp3]
|
36
|
-
puts "MP4 file created" if options[:mp4]
|
37
|
-
puts "FLAC file created" if options[:flac]
|
38
|
-
puts "EXE file created" if options[:exe]
|
39
|
-
puts "APP file created" if options[:app]
|
40
|
-
puts "WAV file created" if options[:wav]
|
41
|
-
puts "MKV file created" if options[:mkv]
|
42
|
-
puts "BIN file created" if options[:bin]
|
43
|
-
puts "JAR file created" if options[:jar]
|
44
|
-
puts "RB file created" if options[:rb]
|
45
|
-
puts "JS file created" if options[:js]
|
46
|
-
puts "TS file created" if options[:ts]
|
47
|
-
puts "HTML file created" if options[:html]
|
48
|
-
puts "CSS file created" if options[:css]
|
49
|
-
# implement createDistrict
|
50
|
-
CLI::UI::Frame.open( "Map :: Media : Create " + createMedia ) do
|
51
|
-
puts "#{createMedia}"
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|