jefferies_tube 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1c12687f118d6ee550ccb98f0befe0fcb2c6902
|
4
|
+
data.tar.gz: 35e168e6630b2b13312dfb1e55fb3206dafbf69d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e26fe86afd0d46632b4d399c130e52d9a0dc77ca8137e3bddae8f7c5a471a9097b7e0709995d91ab2b324fca939d316372301972905a0b6b1b47f3fbfff9236
|
7
|
+
data.tar.gz: 7c36f65b04dfcb81557273920dfb1575c8d22165a85e04b7a64f5c2157360ebea410cc914ac1d6c5b850c2b6cc588e7821077a24f015895fd1c20d2ee72682c8
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module JefferiesTube::ApplicationHelper
|
2
|
+
def naive_page_title
|
3
|
+
return @page_title if @page_title
|
4
|
+
controller = params[:controller]
|
5
|
+
|
6
|
+
title = case params[:action]
|
7
|
+
when "new"
|
8
|
+
"New #{controller.singularize.titlecase}"
|
9
|
+
when "edit"
|
10
|
+
"Editing #{controller.singularize.titlecase}"
|
11
|
+
when "index"
|
12
|
+
"Manage #{controller.titlecase}"
|
13
|
+
else
|
14
|
+
controller.titlecase
|
15
|
+
end
|
16
|
+
|
17
|
+
title
|
18
|
+
end
|
19
|
+
end
|
@@ -2,7 +2,8 @@ desc "Open an ssh session"
|
|
2
2
|
task :ssh do
|
3
3
|
on roles(:app), primary: true do |host|
|
4
4
|
port = host.port || 22
|
5
|
-
|
6
|
-
|
5
|
+
cmd = %Q|ssh #{host.user}@#{host} -p #{port} -t "cd /u/apps/#{fetch :application}/current && exec bash -l"|
|
6
|
+
puts cmd
|
7
|
+
exec cmd
|
7
8
|
end
|
8
9
|
end
|
@@ -28,6 +28,10 @@ module JefferiesTube
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
initializer "jefferies_tube.view_helpers" do
|
32
|
+
ActionView::Base.send :include, JefferiesTube::ApplicationHelper
|
33
|
+
end
|
34
|
+
|
31
35
|
|
32
36
|
initializer "fix spring + figaro" do |config|
|
33
37
|
if defined?(Spring) && File.exists?("config/application.yml")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jefferies_tube
|
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
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- Rakefile
|
126
126
|
- app/assets/stylesheets/jefferies_tube.sass
|
127
127
|
- app/controllers/jefferies_tube/errors_controller.rb
|
128
|
+
- app/helpers/jefferies_tube/application_helper.rb
|
128
129
|
- app/views/errors/404.html.haml
|
129
130
|
- app/views/errors/404.json.jbuilder
|
130
131
|
- app/views/errors/404.xml
|