jefferies_tube 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28837049e119307ca0d578437fe643b85b0392ca
4
- data.tar.gz: 8aa5841a30c82576ca60f8ffdb3b3b9be669b69a
3
+ metadata.gz: b1c12687f118d6ee550ccb98f0befe0fcb2c6902
4
+ data.tar.gz: 35e168e6630b2b13312dfb1e55fb3206dafbf69d
5
5
  SHA512:
6
- metadata.gz: 3041d592626f0a1e060b89b67b56122a303e755eb9a7f5bb356ddeb59bc7c207778ea7b285dc86cf06f99f58e0e16b12a69493f22e7b27f6b89609c525ebef11
7
- data.tar.gz: 9c5f762135566c6e513e594ee0c0624f6538dfdfd6fee992982169c4fe2a5b54dc572fbd9b0914706c73c7eedf82d583335bfa45919c1c588d1238661c788acf
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
- puts "ssh #{host.user}@#{host} -p #{port}"
6
- exec "ssh #{host.user}@#{host} -p #{port}"
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")
@@ -1,3 +1,3 @@
1
1
  module JefferiesTube
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-03-16 00:00:00.000000000 Z
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