eucalypt 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eucalypt/blog/namespaces/blog/cli/blog.rb +4 -6
- data/lib/eucalypt/blog/namespaces/blog-article/cli/article.rb +5 -18
- data/lib/eucalypt/blog/namespaces/blog-article-edit/cli/edit.rb +12 -0
- data/lib/eucalypt/destroy/namespaces/destroy/cli/destroy.rb +5 -6
- data/lib/eucalypt/generate/namespaces/generate/cli/generate.rb +5 -6
- data/lib/eucalypt/migration/namespaces/migration/cli/migration.rb +4 -6
- data/lib/eucalypt/migration/namespaces/migration-add/cli/add.rb +4 -6
- data/lib/eucalypt/migration/namespaces/migration-change/cli/change.rb +4 -6
- data/lib/eucalypt/migration/namespaces/migration-create/cli/create.rb +4 -6
- data/lib/eucalypt/migration/namespaces/migration-drop/cli/drop.rb +4 -6
- data/lib/eucalypt/migration/namespaces/migration-rename/cli/rename.rb +4 -6
- data/lib/eucalypt/security/namespaces/security/cli/security.rb +4 -6
- data/lib/eucalypt/security/namespaces/security-policy/cli/security-policy.rb +4 -6
- data/lib/eucalypt/security/namespaces/security-policy-permission/cli/security-policy-permission.rb +4 -6
- data/lib/eucalypt/security/namespaces/security-policy-role/cli/security-policy-role.rb +4 -6
- data/lib/eucalypt/security/namespaces/security-pundit/cli/security-pundit.rb +4 -6
- data/lib/eucalypt/security/namespaces/security-warden/cli/security-warden.rb +4 -6
- data/lib/eucalypt/version.rb +1 -1
- data/lib/eucalypt.rb +2 -8
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 419ec8d7308501fc42963e6cd81b193bdf527246286a85c0611b2a1bcd7bc6a3
|
4
|
+
data.tar.gz: f1a6de0bbd6d6df1083a686ac9c641d37723fd1f59620ae40b0e327c89742849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f25b0fba832f8f1afc6c19ad21ba140acb08ba419f0e78c238b89dab606885184a9f26ff486d35fa8009eeedadaf87f34ec681fbadcb2964228d2d1d754dc3ae
|
7
|
+
data.tar.gz: 3e0ba7c329b06870f210520d389d878b86c8d34f82554cc2ee73a32719638af3a2ad58e93da09642ee91dce96c80664cd26197852c120c6c565548935185a305
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'eucalypt/errors'
|
2
2
|
require 'eucalypt/helpers'
|
3
|
+
require 'eucalypt/list'
|
3
4
|
require 'eucalypt/blog/namespaces/blog/__require__'
|
4
5
|
require 'eucalypt/blog/namespaces/blog-article/cli/article'
|
5
6
|
|
@@ -10,6 +11,7 @@ module Eucalypt
|
|
10
11
|
include Eucalypt::Helpers::Messages
|
11
12
|
include Eucalypt::Helpers::Gemfile
|
12
13
|
using Colorize
|
14
|
+
extend Eucalypt::List
|
13
15
|
|
14
16
|
option :route, type: :string, aliases: '-r', default: 'blog', desc: "The route at which the blog lies"
|
15
17
|
desc "setup", "Sets up the blog environment".colorize(:grey)
|
@@ -46,12 +48,8 @@ module Eucalypt
|
|
46
48
|
end
|
47
49
|
end
|
48
50
|
|
49
|
-
|
50
|
-
|
51
|
-
include Eucalypt::List
|
52
|
-
def banner(task, namespace = false, subcommand = true)
|
53
|
-
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
54
|
-
end
|
51
|
+
def self.banner(task, namespace = false, subcommand = true)
|
52
|
+
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
55
53
|
end
|
56
54
|
|
57
55
|
register(Eucalypt::BlogArticle, 'article', 'article [COMMAND]', 'Create, edit and destroy blog articles'.colorize(:grey))
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'eucalypt/errors'
|
2
2
|
require 'eucalypt/helpers'
|
3
|
+
require 'eucalypt/list'
|
3
4
|
require 'eucalypt/blog/helpers'
|
4
5
|
require 'eucalypt/blog/namespaces/blog/__require__'
|
5
|
-
require 'eucalypt/blog/namespaces/blog-article-edit/cli/edit
|
6
|
-
require 'eucalypt/blog/namespaces/blog-article-edit/cli/edit-urltitle'
|
6
|
+
require 'eucalypt/blog/namespaces/blog-article-edit/cli/edit'
|
7
7
|
|
8
8
|
module Eucalypt
|
9
9
|
class BlogArticle < Thor
|
@@ -12,6 +12,7 @@ module Eucalypt
|
|
12
12
|
include Eucalypt::Helpers::Messages
|
13
13
|
include Eucalypt::Blog::Helpers
|
14
14
|
using Colorize
|
15
|
+
extend Eucalypt::List
|
15
16
|
|
16
17
|
option :descending, type: :boolean, aliases: '-d', default: true, desc: 'Descending chronological order'
|
17
18
|
option :ascending, type: :boolean, aliases: '-a', default: false, desc: 'Ascending chronological order'
|
@@ -97,22 +98,8 @@ module Eucalypt
|
|
97
98
|
end
|
98
99
|
end
|
99
100
|
|
100
|
-
|
101
|
-
|
102
|
-
include Eucalypt::List
|
103
|
-
def banner(task, namespace = false, subcommand = true)
|
104
|
-
"#{basename} blog #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
class Eucalypt::BlogArticleEdit < Thor
|
109
|
-
class << self
|
110
|
-
require 'eucalypt/list'
|
111
|
-
include Eucalypt::List
|
112
|
-
def banner(task, namespace = false, subcommand = true)
|
113
|
-
"#{basename} blog article #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
114
|
-
end
|
115
|
-
end
|
101
|
+
def self.banner(task, namespace = false, subcommand = true)
|
102
|
+
"#{basename} blog #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
116
103
|
end
|
117
104
|
|
118
105
|
register(Eucalypt::BlogArticleEdit, 'edit', 'edit [COMMAND]', 'Edit blog articles'.colorize(:grey))
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'thor'
|
2
|
+
require 'eucalypt/list'
|
3
|
+
require_relative 'edit-datetime'
|
4
|
+
require_relative 'edit-urltitle'
|
5
|
+
|
6
|
+
class Eucalypt::BlogArticleEdit < Thor
|
7
|
+
extend Eucalypt::List
|
8
|
+
|
9
|
+
def self.banner(task, namespace = false, subcommand = true)
|
10
|
+
"#{basename} blog article #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
11
|
+
end
|
12
|
+
end
|
@@ -1,16 +1,15 @@
|
|
1
1
|
require_relative 'destroy-scaffold'
|
2
2
|
require 'eucalypt/helpers'
|
3
|
+
require 'eucalypt/list'
|
3
4
|
|
4
5
|
module Eucalypt
|
5
6
|
class Destroy < Thor
|
6
7
|
include Eucalypt::Helpers
|
7
8
|
using Colorize
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
13
|
-
end
|
9
|
+
extend Eucalypt::List
|
10
|
+
|
11
|
+
def self.banner(task, namespace = false, subcommand = true)
|
12
|
+
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
14
13
|
end
|
15
14
|
end
|
16
15
|
class CLI < Thor
|
@@ -3,17 +3,16 @@ require 'eucalypt/generate/namespaces/generate-helper/cli/generate-helper'
|
|
3
3
|
require 'eucalypt/generate/namespaces/generate-model/cli/generate-model'
|
4
4
|
require_relative 'generate-scaffold'
|
5
5
|
require 'eucalypt/helpers'
|
6
|
+
require 'eucalypt/list'
|
6
7
|
|
7
8
|
module Eucalypt
|
8
9
|
class Generate < Thor
|
9
10
|
include Eucalypt::Helpers
|
10
11
|
using Colorize
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
16
|
-
end
|
12
|
+
extend Eucalypt::List
|
13
|
+
|
14
|
+
def self.banner(task, namespace = false, subcommand = true)
|
15
|
+
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
17
16
|
end
|
18
17
|
end
|
19
18
|
class CLI < Thor
|
@@ -5,24 +5,22 @@ require 'eucalypt/migration/namespaces/migration-rename/cli/rename'
|
|
5
5
|
require 'eucalypt/migration/namespaces/migration-change/cli/change'
|
6
6
|
require 'eucalypt/migration/namespaces/migration-blank/cli/blank'
|
7
7
|
require 'eucalypt/helpers'
|
8
|
+
require 'eucalypt/list'
|
8
9
|
|
9
10
|
module Eucalypt
|
10
11
|
class Migration < Thor
|
11
12
|
include Thor::Actions
|
12
13
|
include Eucalypt::Helpers
|
13
14
|
using Colorize
|
15
|
+
extend Eucalypt::List
|
14
16
|
|
15
17
|
desc "types", "Display permitted column types".colorize(:grey)
|
16
18
|
def types
|
17
19
|
puts Eucalypt::Helpers::Migration::Validation::COLUMN_TYPES.inspect
|
18
20
|
end
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
-
include Eucalypt::List
|
23
|
-
def banner(task, namespace = false, subcommand = true)
|
24
|
-
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
25
|
-
end
|
22
|
+
def self.banner(task, namespace = false, subcommand = true)
|
23
|
+
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
26
24
|
end
|
27
25
|
|
28
26
|
register(Eucalypt::MigrationCreate, 'create', 'create [COMMAND]', 'Create tables'.colorize(:grey))
|
@@ -2,17 +2,15 @@ require 'thor'
|
|
2
2
|
require 'eucalypt/helpers'
|
3
3
|
require_relative 'add-index'
|
4
4
|
require_relative 'add-column'
|
5
|
+
require 'eucalypt/list'
|
5
6
|
|
6
7
|
module Eucalypt
|
7
8
|
class MigrationAdd < Thor
|
8
9
|
include Thor::Actions
|
10
|
+
extend Eucalypt::List
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
include Eucalypt::List
|
13
|
-
def banner(task, namespace = false, subcommand = true)
|
14
|
-
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
15
|
-
end
|
12
|
+
def self.banner(task, namespace = false, subcommand = true)
|
13
|
+
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
16
14
|
end
|
17
15
|
end
|
18
16
|
end
|
@@ -1,17 +1,15 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'eucalypt/helpers'
|
3
3
|
require_relative 'change-column'
|
4
|
+
require 'eucalypt/list'
|
4
5
|
|
5
6
|
module Eucalypt
|
6
7
|
class MigrationChange < Thor
|
7
8
|
include Thor::Actions
|
9
|
+
extend Eucalypt::List
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
include Eucalypt::List
|
12
|
-
def banner(task, namespace = false, subcommand = true)
|
13
|
-
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
14
|
-
end
|
11
|
+
def self.banner(task, namespace = false, subcommand = true)
|
12
|
+
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
15
13
|
end
|
16
14
|
end
|
17
15
|
end
|
@@ -1,17 +1,15 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'eucalypt/helpers'
|
3
3
|
require_relative 'create-table'
|
4
|
+
require 'eucalypt/list'
|
4
5
|
|
5
6
|
module Eucalypt
|
6
7
|
class MigrationCreate < Thor
|
7
8
|
include Thor::Actions
|
9
|
+
extend Eucalypt::List
|
8
10
|
|
9
|
-
|
10
|
-
|
11
|
-
include Eucalypt::List
|
12
|
-
def banner(task, namespace = false, subcommand = true)
|
13
|
-
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
14
|
-
end
|
11
|
+
def self.banner(task, namespace = false, subcommand = true)
|
12
|
+
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
15
13
|
end
|
16
14
|
end
|
17
15
|
end
|
@@ -3,17 +3,15 @@ require 'eucalypt/helpers'
|
|
3
3
|
require_relative 'drop-table'
|
4
4
|
require_relative 'drop-index'
|
5
5
|
require_relative 'drop-column'
|
6
|
+
require 'eucalypt/list'
|
6
7
|
|
7
8
|
module Eucalypt
|
8
9
|
class MigrationDrop < Thor
|
9
10
|
include Thor::Actions
|
11
|
+
extend Eucalypt::List
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
include Eucalypt::List
|
14
|
-
def banner(task, namespace = false, subcommand = true)
|
15
|
-
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
16
|
-
end
|
13
|
+
def self.banner(task, namespace = false, subcommand = true)
|
14
|
+
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|
@@ -3,17 +3,15 @@ require 'eucalypt/helpers'
|
|
3
3
|
require_relative 'rename-column'
|
4
4
|
require_relative 'rename-index'
|
5
5
|
require_relative 'rename-table'
|
6
|
+
require 'eucalypt/list'
|
6
7
|
|
7
8
|
module Eucalypt
|
8
9
|
class MigrationRename < Thor
|
9
10
|
include Thor::Actions
|
11
|
+
extend Eucalypt::List
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
-
include Eucalypt::List
|
14
|
-
def banner(task, namespace = false, subcommand = true)
|
15
|
-
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
16
|
-
end
|
13
|
+
def self.banner(task, namespace = false, subcommand = true)
|
14
|
+
"#{basename} migration #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|
@@ -3,19 +3,17 @@ require 'eucalypt/security/namespaces/security-warden/cli/security-warden'
|
|
3
3
|
require 'eucalypt/security/namespaces/security-pundit/cli/security-pundit'
|
4
4
|
require 'eucalypt/security/namespaces/security-policy/cli/security-policy'
|
5
5
|
require 'eucalypt/helpers'
|
6
|
+
require 'eucalypt/list'
|
6
7
|
|
7
8
|
module Eucalypt
|
8
9
|
class Security < Thor
|
9
10
|
include Thor::Actions
|
10
11
|
include Eucalypt::Helpers
|
11
12
|
using Colorize
|
13
|
+
extend Eucalypt::List
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
include Eucalypt::List
|
16
|
-
def banner(task, namespace = false, subcommand = true)
|
17
|
-
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
18
|
-
end
|
15
|
+
def self.banner(task, namespace = false, subcommand = true)
|
16
|
+
basename + ' ' + task.formatted_usage(self, true, subcommand).split(':').join(' ')
|
19
17
|
end
|
20
18
|
|
21
19
|
register(Eucalypt::SecurityWarden, 'warden', 'warden [COMMAND]', 'Configure Warden authentication'.colorize(:grey))
|
@@ -4,12 +4,14 @@ require 'eucalypt/helpers'
|
|
4
4
|
require 'eucalypt/security/namespaces/security-policy/generators/policy'
|
5
5
|
require 'eucalypt/security/namespaces/security-policy-permission/cli/security-policy-permission'
|
6
6
|
require 'eucalypt/security/namespaces/security-policy-role/cli/security-policy-role'
|
7
|
+
require 'eucalypt/list'
|
7
8
|
|
8
9
|
module Eucalypt
|
9
10
|
class SecurityPolicy < Thor
|
10
11
|
include Thor::Actions
|
11
12
|
include Eucalypt::Helpers
|
12
13
|
using Colorize
|
14
|
+
extend Eucalypt::List
|
13
15
|
|
14
16
|
option :headless, type: :boolean, aliases: '-H', default: false, desc: "Policy with no associated model"
|
15
17
|
option :permissions, type: :array, aliases: '-p', default: [], desc: "Permissions to generate along with the policy"
|
@@ -78,12 +80,8 @@ module Eucalypt
|
|
78
80
|
#def destroy()
|
79
81
|
#end
|
80
82
|
|
81
|
-
|
82
|
-
|
83
|
-
include Eucalypt::List
|
84
|
-
def banner(task, namespace = false, subcommand = true)
|
85
|
-
"#{basename} security #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
86
|
-
end
|
83
|
+
def self.banner(task, namespace = false, subcommand = true)
|
84
|
+
"#{basename} security #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
87
85
|
end
|
88
86
|
|
89
87
|
register(Eucalypt::SecurityPolicyPermission, 'permission', 'permission [COMMAND]', 'Pundit policy permission commands'.colorize(:grey))
|
data/lib/eucalypt/security/namespaces/security-policy-permission/cli/security-policy-permission.rb
CHANGED
@@ -2,12 +2,14 @@ require 'thor'
|
|
2
2
|
require 'eucalypt/errors'
|
3
3
|
require 'eucalypt/helpers'
|
4
4
|
require 'eucalypt/security/namespaces/security-policy-permission/generators/policy-permission'
|
5
|
+
require 'eucalypt/list'
|
5
6
|
|
6
7
|
module Eucalypt
|
7
8
|
class SecurityPolicyPermission < Thor
|
8
9
|
include Thor::Actions
|
9
10
|
include Eucalypt::Helpers
|
10
11
|
using Colorize
|
12
|
+
extend Eucalypt::List
|
11
13
|
|
12
14
|
desc "generate [POLICY] [PERMISSION]", "Create a new Pundit policy permission".colorize(:grey)
|
13
15
|
def generate(name, permission)
|
@@ -51,12 +53,8 @@ module Eucalypt
|
|
51
53
|
# def destroy()
|
52
54
|
# end
|
53
55
|
|
54
|
-
|
55
|
-
|
56
|
-
include Eucalypt::List
|
57
|
-
def banner(task, namespace = false, subcommand = true)
|
58
|
-
"#{basename} security policy #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
59
|
-
end
|
56
|
+
def self.banner(task, namespace = false, subcommand = true)
|
57
|
+
"#{basename} security policy #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
60
58
|
end
|
61
59
|
end
|
62
60
|
end
|
@@ -1,12 +1,14 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'eucalypt/errors'
|
3
3
|
require 'eucalypt/helpers'
|
4
|
+
require 'eucalypt/list'
|
4
5
|
|
5
6
|
module Eucalypt
|
6
7
|
class SecurityPolicyRole < Thor
|
7
8
|
include Thor::Actions
|
8
9
|
include Eucalypt::Helpers
|
9
10
|
using Colorize
|
11
|
+
extend Eucalypt::List
|
10
12
|
|
11
13
|
desc "generate [POLICY] [ROLE]", "Create a new Pundit policy role".colorize(:grey)
|
12
14
|
def generate(name, role)
|
@@ -55,12 +57,8 @@ module Eucalypt
|
|
55
57
|
# def destroy()
|
56
58
|
# end
|
57
59
|
|
58
|
-
|
59
|
-
|
60
|
-
include Eucalypt::List
|
61
|
-
def banner(task, namespace = false, subcommand = true)
|
62
|
-
"#{basename} security policy #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
63
|
-
end
|
60
|
+
def self.banner(task, namespace = false, subcommand = true)
|
61
|
+
"#{basename} security policy #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
64
62
|
end
|
65
63
|
end
|
66
64
|
end
|
@@ -2,6 +2,7 @@ require 'thor'
|
|
2
2
|
require 'eucalypt/helpers'
|
3
3
|
require 'eucalypt/security/helpers'
|
4
4
|
require 'eucalypt/security/namespaces/security-pundit/generators/role'
|
5
|
+
require 'eucalypt/list'
|
5
6
|
|
6
7
|
module Eucalypt
|
7
8
|
class SecurityPundit < Thor
|
@@ -11,6 +12,7 @@ module Eucalypt
|
|
11
12
|
include Eucalypt::Helpers::Gemfile
|
12
13
|
include Eucalypt::Security::Helpers
|
13
14
|
using Colorize
|
15
|
+
extend Eucalypt::List
|
14
16
|
|
15
17
|
def self.source_root
|
16
18
|
File.join File.dirname(__dir__), 'templates'
|
@@ -68,12 +70,8 @@ module Eucalypt
|
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
71
|
-
|
72
|
-
|
73
|
-
include Eucalypt::List
|
74
|
-
def banner(task, namespace = false, subcommand = true)
|
75
|
-
"#{basename} security #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
76
|
-
end
|
73
|
+
def self.banner(task, namespace = false, subcommand = true)
|
74
|
+
"#{basename} security #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
77
75
|
end
|
78
76
|
end
|
79
77
|
end
|
@@ -3,6 +3,7 @@ require 'eucalypt/helpers'
|
|
3
3
|
require 'eucalypt/security/helpers'
|
4
4
|
require 'eucalypt/security/namespaces/security-warden/generators/user'
|
5
5
|
require 'eucalypt/security/namespaces/security-warden/generators/auth_controller'
|
6
|
+
require 'eucalypt/list'
|
6
7
|
|
7
8
|
module Eucalypt
|
8
9
|
class SecurityWarden < Thor
|
@@ -13,6 +14,7 @@ module Eucalypt
|
|
13
14
|
include Eucalypt::Security::Helpers
|
14
15
|
using Colorize
|
15
16
|
using String::Builder
|
17
|
+
extend Eucalypt::List
|
16
18
|
|
17
19
|
def self.source_root
|
18
20
|
File.join File.dirname(__dir__), 'templates'
|
@@ -68,12 +70,8 @@ module Eucalypt
|
|
68
70
|
end
|
69
71
|
end
|
70
72
|
|
71
|
-
|
72
|
-
|
73
|
-
include Eucalypt::List
|
74
|
-
def banner(task, namespace = false, subcommand = true)
|
75
|
-
"#{basename} security #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
76
|
-
end
|
73
|
+
def self.banner(task, namespace = false, subcommand = true)
|
74
|
+
"#{basename} security #{task.formatted_usage(self, true, subcommand).split(':').join(' ')}"
|
77
75
|
end
|
78
76
|
end
|
79
77
|
end
|
data/lib/eucalypt/version.rb
CHANGED
data/lib/eucalypt.rb
CHANGED
@@ -9,12 +9,6 @@ require 'eucalypt/static'
|
|
9
9
|
require 'eucalypt/controller'
|
10
10
|
require 'eucalypt/app'
|
11
11
|
require 'eucalypt/root'
|
12
|
+
require 'eucalypt/list'
|
12
13
|
|
13
|
-
|
14
|
-
class CLI < Thor
|
15
|
-
class << self
|
16
|
-
require 'eucalypt/list'
|
17
|
-
include Eucalypt::List
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
14
|
+
Eucalypt::CLI.extend Eucalypt::List
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eucalypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edwin Onuonga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -197,6 +197,7 @@ files:
|
|
197
197
|
- lib/eucalypt/blog/helpers.rb
|
198
198
|
- lib/eucalypt/blog/namespaces/blog-article-edit/cli/edit-datetime.rb
|
199
199
|
- lib/eucalypt/blog/namespaces/blog-article-edit/cli/edit-urltitle.rb
|
200
|
+
- lib/eucalypt/blog/namespaces/blog-article-edit/cli/edit.rb
|
200
201
|
- lib/eucalypt/blog/namespaces/blog-article/cli/article.rb
|
201
202
|
- lib/eucalypt/blog/namespaces/blog/__base__.rb
|
202
203
|
- lib/eucalypt/blog/namespaces/blog/__require__.rb
|