setlist 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/curtains +4 -0
- data/bin/setlist +5 -0
- data/lib/setlist.rb +37 -0
- metadata +51 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a17759c941426a16935d9c4eeb8bce45310ed4df
|
4
|
+
data.tar.gz: 9cfeaf164f57952c36be2a63137335cb537cdb61
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 10f9d4a6e5052c034c7b8475fce0da7befea9806197d737222924e11e5ab732d8d737e4a3dea1d41e0bffc5daa01991f56c99f9f5e71f3e4ff1f74a91f66d77a
|
7
|
+
data.tar.gz: 85fdea69526fd0c7fc725cffaf408b405f2b5752526706c6351f22b533c11eb02f35a1fd66f703d9424f7bc480aeb8d6a7401f61618a377f8b80614fa959d0ce
|
data/bin/curtains
ADDED
data/bin/setlist
ADDED
data/lib/setlist.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
class Setlist
|
4
|
+
|
5
|
+
@default_files = ["app.rb", "Gemfile", "config.rb", "Rakefile"]
|
6
|
+
@default_folders = ["public", "models", "views"]
|
7
|
+
|
8
|
+
def self.dir_structure
|
9
|
+
|
10
|
+
@default_folders.each do |dir|
|
11
|
+
Dir.mkdir("./#{dir}")
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.create_files
|
16
|
+
|
17
|
+
@default_files.each do |file|
|
18
|
+
File.new(file, "a")
|
19
|
+
end
|
20
|
+
|
21
|
+
["index.erb", "layout.erb"].each do |file|
|
22
|
+
File.new("./views/#{file}", "a")
|
23
|
+
end
|
24
|
+
|
25
|
+
File.new("./public/styles.css", "a")
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.delete_files
|
29
|
+
|
30
|
+
@default_files.each do |file|
|
31
|
+
File.delete(file)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: setlist
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Tener
|
8
|
+
- Chuck Rea
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-12-27 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Builds simple directory structure for a Sinatra application
|
15
|
+
email:
|
16
|
+
- michaeltener@gmail.com
|
17
|
+
- chuckr523@mac.com
|
18
|
+
executables:
|
19
|
+
- setlist
|
20
|
+
- curtains
|
21
|
+
extensions: []
|
22
|
+
extra_rdoc_files: []
|
23
|
+
files:
|
24
|
+
- lib/setlist.rb
|
25
|
+
- bin/setlist
|
26
|
+
- bin/curtains
|
27
|
+
homepage: https://github.com/chuckrea/setlist
|
28
|
+
licenses:
|
29
|
+
- MIT
|
30
|
+
metadata: {}
|
31
|
+
post_install_message:
|
32
|
+
rdoc_options: []
|
33
|
+
require_paths:
|
34
|
+
- lib
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
requirements: []
|
46
|
+
rubyforge_project:
|
47
|
+
rubygems_version: 2.1.11
|
48
|
+
signing_key:
|
49
|
+
specification_version: 4
|
50
|
+
summary: Sinatra Setlist
|
51
|
+
test_files: []
|