pretzel-cli 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +53 -0
- data/LICENSE +22 -0
- data/README.md +2 -0
- data/lib/pretzel/cli.rb +41 -0
- data/pretzel.gemspec +19 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ba36ad0645ad96ef42629e7fc3626548aab149b
|
4
|
+
data.tar.gz: 62860cd0efcf63ace36f2bb1cb4b2ba57c708714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3978ac06f637fb9875d37d9e67f31d10a8550714015784ec51ef37ce0528b675e89c31a15a1807e74297d16d0b7a354c609c9e61a1e1b6e490e5e2b2692a0a3
|
7
|
+
data.tar.gz: bc2e32814be7ae5a5433f686b068ca28e6b2a80fa94db7d8c1700edd3264b2b6f5474536238d8b340881a84b6a18919c829f971981d79e0c52851d6b755d476d
|
data/.gitignore
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
2
|
+
__pycache__/
|
3
|
+
*.py[cod]
|
4
|
+
|
5
|
+
# C extensions
|
6
|
+
*.so
|
7
|
+
|
8
|
+
# Distribution / packaging
|
9
|
+
.Python
|
10
|
+
env/
|
11
|
+
build/
|
12
|
+
develop-eggs/
|
13
|
+
dist/
|
14
|
+
downloads/
|
15
|
+
eggs/
|
16
|
+
lib64/
|
17
|
+
parts/
|
18
|
+
sdist/
|
19
|
+
var/
|
20
|
+
*.egg-info/
|
21
|
+
.installed.cfg
|
22
|
+
*.egg
|
23
|
+
|
24
|
+
# PyInstaller
|
25
|
+
# Usually these files are written by a python script from a template
|
26
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
27
|
+
*.manifest
|
28
|
+
*.spec
|
29
|
+
|
30
|
+
# Installer logs
|
31
|
+
pip-log.txt
|
32
|
+
pip-delete-this-directory.txt
|
33
|
+
|
34
|
+
# Unit test / coverage reports
|
35
|
+
htmlcov/
|
36
|
+
.tox/
|
37
|
+
.coverage
|
38
|
+
.cache
|
39
|
+
nosetests.xml
|
40
|
+
coverage.xml
|
41
|
+
|
42
|
+
# Translations
|
43
|
+
*.mo
|
44
|
+
*.pot
|
45
|
+
|
46
|
+
# Django stuff:
|
47
|
+
*.log
|
48
|
+
|
49
|
+
# Sphinx documentation
|
50
|
+
docs/_build/
|
51
|
+
|
52
|
+
# PyBuilder
|
53
|
+
target/
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Pretzelhands
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
data/lib/pretzel/cli.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
require "thor"
|
2
|
+
|
3
|
+
module Pretzel
|
4
|
+
class CLI < Thor
|
5
|
+
attr_accessor :name
|
6
|
+
|
7
|
+
include Thor::Actions
|
8
|
+
package_name "Pretzel"
|
9
|
+
|
10
|
+
def self.source_root
|
11
|
+
File.dirname(__FILE__)
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "create <project>", "Create a new Pretzel project."
|
15
|
+
def create(name)
|
16
|
+
@name = name
|
17
|
+
|
18
|
+
empty_directory name
|
19
|
+
empty_directory "#{name}/assets"
|
20
|
+
empty_directory "#{name}/views"
|
21
|
+
empty_directory "#{name}/views/includes"
|
22
|
+
|
23
|
+
template "templates/application.rb", "#{name}/#{name}.rb"
|
24
|
+
template "templates/config.ru", "#{name}/config.ru"
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "start <port>", "Run your application on the specified port"
|
28
|
+
def start(port)
|
29
|
+
if File.exist? "config.ru"
|
30
|
+
system "rackup -p #{port} -o '0.0.0.0'"
|
31
|
+
else
|
32
|
+
puts "ERROR: No config.ru found"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
desc "bake <port>", "Vanity function. Same as 'start'"
|
37
|
+
def bake(port)
|
38
|
+
start port
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
data/pretzel.gemspec
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "pretzel-cli"
|
3
|
+
s.version = "0.1.1"
|
4
|
+
s.licenses = ["MIT"]
|
5
|
+
s.summary = "The Pretzel web application suite CLI"
|
6
|
+
s.description = "A management command-line application for all Pretzel projects"
|
7
|
+
s.authors = ["Richard Blechinger"]
|
8
|
+
s.email = "richard@blechi.at"
|
9
|
+
s.homepage = "http://github.com/pretzelhands/cli"
|
10
|
+
|
11
|
+
|
12
|
+
s.required_ruby_version = ">= 2.0.0"
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.require_paths = ["lib"]
|
16
|
+
|
17
|
+
s.executables << "pretzel"
|
18
|
+
s.add_dependency "thor", "~> 0"
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretzel-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Blechinger
|
@@ -31,7 +31,12 @@ executables:
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- ".gitignore"
|
35
|
+
- LICENSE
|
36
|
+
- README.md
|
34
37
|
- bin/pretzel
|
38
|
+
- lib/pretzel/cli.rb
|
39
|
+
- pretzel.gemspec
|
35
40
|
homepage: http://github.com/pretzelhands/cli
|
36
41
|
licenses:
|
37
42
|
- MIT
|
@@ -44,7 +49,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
49
|
requirements:
|
45
50
|
- - ">="
|
46
51
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
52
|
+
version: 2.0.0
|
48
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
54
|
requirements:
|
50
55
|
- - ">="
|