phoenix-cli 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +9 -0
- data/.gitignore +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +34 -0
- data/LICENSE +21 -0
- data/README.md +22 -0
- data/bin/phoenix +4 -0
- data/lib/phoenix-cli.rb +3 -0
- data/lib/phoenix-cli/cli.rb +32 -0
- data/lib/phoenix-cli/version.rb +3 -0
- data/phoenix-cli.gemspec +21 -0
- data/spec/spec_helper.rb +2 -0
- metadata +86 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3c4676f27ec5d5acd813f29fea55f915269e0c1d
|
4
|
+
data.tar.gz: 03b87a98057016a9377a87362eee454e76c32f3d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6eb2928de5ea94c827477329580ccac6c32e5bb2e909d765f5cc10f9642fa01b486334a4e4fce5ccdab34c76618675f94fc37839525b6f6031f0e1f39781c8c6
|
7
|
+
data.tar.gz: '069f09e40d49a2e006f8f76ce7ea04070449ef78bd4711a9c5fd82c428e9b8fcccb41827dbdf39ff414bf6600289a89a7ddfda4c9971efafdd91b1754b4205cd'
|
data/.editorconfig
ADDED
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
phoenix-cli (0.1.0)
|
5
|
+
thor (~> 0.19)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
diff-lcs (1.3)
|
11
|
+
rspec (3.6.0)
|
12
|
+
rspec-core (~> 3.6.0)
|
13
|
+
rspec-expectations (~> 3.6.0)
|
14
|
+
rspec-mocks (~> 3.6.0)
|
15
|
+
rspec-core (3.6.0)
|
16
|
+
rspec-support (~> 3.6.0)
|
17
|
+
rspec-expectations (3.6.0)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.6.0)
|
20
|
+
rspec-mocks (3.6.0)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.6.0)
|
23
|
+
rspec-support (3.6.0)
|
24
|
+
thor (0.19.4)
|
25
|
+
|
26
|
+
PLATFORMS
|
27
|
+
ruby
|
28
|
+
|
29
|
+
DEPENDENCIES
|
30
|
+
phoenix-cli!
|
31
|
+
rspec (~> 3)
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
1.15.0
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Dayvson Lima
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
phoenix-cli
|
2
|
+
=================
|
3
|
+
|
4
|
+
Phoenix Pretty CLI
|
5
|
+
|
6
|
+
## Setup
|
7
|
+
|
8
|
+
1. Install `gem install phoenix-cli`.
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
_Fill in with gem usage information._
|
13
|
+
|
14
|
+
## Development
|
15
|
+
|
16
|
+
When hacking on this gem, the REPL `pry` comes in handy. You can load the
|
17
|
+
contents of the gem with `pry --gem`.
|
18
|
+
|
19
|
+
To test the CLI, run
|
20
|
+
|
21
|
+
ruby -Ilib bin/phoenix-cli
|
22
|
+
|
data/bin/phoenix
ADDED
data/lib/phoenix-cli.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'phoenix-cli'
|
3
|
+
|
4
|
+
trap("SIGINT") { exit! }
|
5
|
+
|
6
|
+
module PhoenixCli
|
7
|
+
class CLI < Thor
|
8
|
+
include Thor::Actions
|
9
|
+
|
10
|
+
map %w(-v --version) => :version
|
11
|
+
|
12
|
+
desc "install", "Install framework"
|
13
|
+
def install
|
14
|
+
exec('mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez')
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "new", "Create new project"
|
18
|
+
def new(path='')
|
19
|
+
exec("mix phoenix.new #{path}")
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "server", "Create new project"
|
23
|
+
def server
|
24
|
+
exec("mix phoenix.server")
|
25
|
+
end
|
26
|
+
|
27
|
+
desc 'version', 'phoenix-cli version'
|
28
|
+
def version
|
29
|
+
puts PhoenixCli::VERSION
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/phoenix-cli.gemspec
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require File.expand_path("../lib/phoenix-cli/version", __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "phoenix-cli"
|
6
|
+
s.version = PhoenixCli::VERSION
|
7
|
+
s.authors = ["Dayvson Lima"]
|
8
|
+
s.email = ["dayvsonlima31@gmail.com"]
|
9
|
+
s.homepage = "http://medium.com/@dayvsonlima/"
|
10
|
+
s.summary = %q{Phoenix frienfly CLI write in ruby}
|
11
|
+
s.description = %q{Phoenix Pretty CLI for using phoenix command line friendly}
|
12
|
+
s.licenses = ['MIT']
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
|
+
s.require_paths = ['lib']
|
18
|
+
|
19
|
+
s.add_runtime_dependency 'thor', '~> 0.19'
|
20
|
+
s.add_development_dependency 'rspec', '~> 3'
|
21
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: phoenix-cli
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dayvson Lima
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3'
|
41
|
+
description: Phoenix Pretty CLI for using phoenix command line friendly
|
42
|
+
email:
|
43
|
+
- dayvsonlima31@gmail.com
|
44
|
+
executables:
|
45
|
+
- phoenix
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".editorconfig"
|
50
|
+
- ".gitignore"
|
51
|
+
- Gemfile
|
52
|
+
- Gemfile.lock
|
53
|
+
- LICENSE
|
54
|
+
- README.md
|
55
|
+
- bin/phoenix
|
56
|
+
- lib/phoenix-cli.rb
|
57
|
+
- lib/phoenix-cli/cli.rb
|
58
|
+
- lib/phoenix-cli/version.rb
|
59
|
+
- phoenix-cli.gemspec
|
60
|
+
- spec/spec_helper.rb
|
61
|
+
homepage: http://medium.com/@dayvsonlima/
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 2.6.11
|
82
|
+
signing_key:
|
83
|
+
specification_version: 4
|
84
|
+
summary: Phoenix frienfly CLI write in ruby
|
85
|
+
test_files:
|
86
|
+
- spec/spec_helper.rb
|