codelation-cli 0.0.12 → 0.0.13
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 +4 -4
- data/bin/codelation +0 -19
- data/lib/codelation/base.rb +34 -0
- data/lib/codelation/development.rb +10 -0
- data/lib/codelation/development/atom_packages.rb +1 -1
- data/lib/codelation/development/dependencies.rb +1 -0
- data/lib/codelation/development/ruby.rb +1 -1
- data/lib/codelation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f4a47316b7a32f60a296a082369e980e3788abc
|
4
|
+
data.tar.gz: d99111e1990861713209e28e081e2d13be3cd6ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e37f9db03eb74087d7e107e5dc674dd4a4dd711aa16645642fb63174a285711fd1c2f75b8c610574c55e2e79fa420219968d3dd52e6eb4a1024c1d5ba91fd6ff
|
7
|
+
data.tar.gz: bddeda0aae64fafb29ce262a8f1a7b54fe663c5f4a3a3c14cc885a364bb86225f3120b7f1a2944c34aa7be52a99d75a5917a26a95f91bfdfcc8d3ea6915896a3
|
data/bin/codelation
CHANGED
@@ -5,25 +5,6 @@ require_relative "../lib/codelation"
|
|
5
5
|
|
6
6
|
module Codelation
|
7
7
|
class Cli < Thor
|
8
|
-
include Thor::Actions
|
9
|
-
# Add the ablitity to run commands like:
|
10
|
-
# `heroku config:set`
|
11
|
-
# This would run the defined method:
|
12
|
-
# `config_set`
|
13
|
-
def method_missing(method, *args, &block)
|
14
|
-
if method.to_s.split(":").length >= 2
|
15
|
-
self.send(method.to_s.gsub(":", "_"), *args)
|
16
|
-
elsif method == :run
|
17
|
-
self.walk(*args)
|
18
|
-
else
|
19
|
-
super
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
# This is the directory where your templates should be placed.
|
24
|
-
def self.source_root
|
25
|
-
File.expand_path("../../resources", __FILE__)
|
26
|
-
end
|
27
8
|
end
|
28
9
|
end
|
29
10
|
|
data/lib/codelation/base.rb
CHANGED
@@ -4,6 +4,40 @@ require "thor"
|
|
4
4
|
|
5
5
|
module Codelation
|
6
6
|
class Cli < Thor
|
7
|
+
include Thor::Actions
|
8
|
+
# Add the ablitity to print help for commands like:
|
9
|
+
# `codelation help development:install`
|
10
|
+
# This would print help for the method:
|
11
|
+
# `development_install`
|
12
|
+
# @param method [String]
|
13
|
+
def help(method = nil)
|
14
|
+
if method.to_s.split(":").length >= 2
|
15
|
+
method = method.to_s.gsub(":", "_")
|
16
|
+
elsif method.to_s == "run"
|
17
|
+
method = "walk"
|
18
|
+
end
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
22
|
+
# Add the ablitity to run commands like:
|
23
|
+
# `codelation development:install`
|
24
|
+
# This would run the defined method:
|
25
|
+
# `development_install`
|
26
|
+
def method_missing(method, *args, &block)
|
27
|
+
if method.to_s.split(":").length >= 2
|
28
|
+
self.send(method.to_s.gsub(":", "_"), *args)
|
29
|
+
elsif method.to_s == "run"
|
30
|
+
self.walk(*args)
|
31
|
+
else
|
32
|
+
super
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# This is the directory where your templates should be placed.
|
37
|
+
def self.source_root
|
38
|
+
File.expand_path("../../../resources", __FILE__)
|
39
|
+
end
|
40
|
+
|
7
41
|
private
|
8
42
|
|
9
43
|
# Print a heading to the terminal for commands that are going to be run.
|
@@ -3,6 +3,16 @@ require "thor"
|
|
3
3
|
module Codelation
|
4
4
|
class Cli < Thor
|
5
5
|
desc "development:install", "Install the development tools used by Codelation"
|
6
|
+
long_desc <<-LONGDESC
|
7
|
+
Installs the following development tools:\r\n
|
8
|
+
- Atom.app (https://atom.io)\n
|
9
|
+
- Atom Packages: erb-snippets, linter, linter-csslint, linter-erb, linter-jshint,
|
10
|
+
linter-php, linter-rubocop, linter-ruby, linter-scss-lint, remote-atom\n
|
11
|
+
- Postgres.app (http://postgresapp.com)\n
|
12
|
+
- Ruby (https://www.ruby-lang.org)\n
|
13
|
+
- Ruby Gems: bundler, rubocop, scss-lint\n
|
14
|
+
- Sequel Pro.app (http://www.sequelpro.com)
|
15
|
+
LONGDESC
|
6
16
|
def development_install
|
7
17
|
print_heading("Installing Dependencies")
|
8
18
|
install_dependencies
|
@@ -18,7 +18,6 @@ module Codelation
|
|
18
18
|
# Install Atom.app Packages
|
19
19
|
def install_atom_packages
|
20
20
|
packages = %w(
|
21
|
-
color-picker
|
22
21
|
erb-snippets
|
23
22
|
linter
|
24
23
|
linter-csslint
|
@@ -28,6 +27,7 @@ module Codelation
|
|
28
27
|
linter-rubocop
|
29
28
|
linter-ruby
|
30
29
|
linter-scss-lint
|
30
|
+
linter-shellcheck
|
31
31
|
remote-atom
|
32
32
|
)
|
33
33
|
packages.each do |package|
|
data/lib/codelation/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codelation-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open_uri_redirections
|