my_nagios 0.0.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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +38 -0
- data/Rakefile +37 -0
- data/app/assets/images/my_nagios/chasing_arrows.gif +0 -0
- data/app/assets/javascripts/my_nagios/application.js +15 -0
- data/app/assets/javascripts/my_nagios/checks.coffee +11 -0
- data/app/assets/javascripts/my_nagios/welcome.coffee +0 -0
- data/app/assets/stylesheets/my_nagios/application.scss +18 -0
- data/app/assets/stylesheets/my_nagios/checks.scss +15 -0
- data/app/assets/stylesheets/my_nagios/welcome.scss +11 -0
- data/app/controllers/my_nagios/application_controller.rb +5 -0
- data/app/controllers/my_nagios/checks_controller.rb +31 -0
- data/app/controllers/my_nagios/welcome_controller.rb +12 -0
- data/app/helpers/my_nagios/application_helper.rb +4 -0
- data/app/helpers/my_nagios/checks_helper.rb +16 -0
- data/app/helpers/my_nagios/welcome_helper.rb +4 -0
- data/app/jobs/monitoring_job.rb +14 -0
- data/app/jobs/schedule_by_interval_job.rb +22 -0
- data/app/models/my_nagios/check.rb +49 -0
- data/app/models/my_nagios/group.rb +5 -0
- data/app/views/layouts/my_nagios/application.haml +11 -0
- data/app/views/my_nagios/checks/_check_row.haml +23 -0
- data/app/views/my_nagios/checks/new.haml +26 -0
- data/app/views/my_nagios/checks/run_now.js.coffee +12 -0
- data/app/views/my_nagios/welcome/index.haml +28 -0
- data/config/initializers/sidekiq.rb +5 -0
- data/config/routes.rb +11 -0
- data/config/schedule.yml +20 -0
- data/db/migrate/20160503110437_create_my_nagios_checks.rb +25 -0
- data/db/migrate/20160503110441_create_my_nagios_groups.rb +8 -0
- data/lib/my_nagios/engine.rb +6 -0
- data/lib/my_nagios/version.rb +3 -0
- data/lib/my_nagios.rb +4 -0
- data/lib/tasks/my_nagios_tasks.rake +4 -0
- data/test/controllers/my_nagios/checks_controller_test.rb +13 -0
- data/test/controllers/my_nagios/welcome_controller_test.rb +13 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/my_nagios/checks.yml +11 -0
- data/test/fixtures/my_nagios/groups.yml +11 -0
- data/test/integration/navigation_test.rb +8 -0
- data/test/models/my_nagios/check_test.rb +9 -0
- data/test/models/my_nagios/group_test.rb +9 -0
- data/test/my_nagios_test.rb +7 -0
- data/test/test_helper.rb +21 -0
- metadata +304 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a989066826c15858c414c9ecdbae0fd97e7d3514
|
4
|
+
data.tar.gz: 52ac38f85783c9807579f02d095fa1e9872f080f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d71f85f96192068013c563945c8382a3b7972387a393b973c6fe5ce720fff1b4e3d94aadacfb6e70127a4ac7946d2ea4622c85901136327811dcfc47ed7a2dc8
|
7
|
+
data.tar.gz: 63203cda6f55189f473450befef29c7062d1e75afac54ea108f636f3a064cfa1344712f7077dc5fe6ebaa2fecaee0010ed5706ed03fd8736f55763a0ab710ed9
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2016 Vitaly Omelchenko
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
= MyNagios
|
2
|
+
|
3
|
+
This project rocks and uses MIT-LICENSE.
|
4
|
+
|
5
|
+
|
6
|
+
rake my_nagios:install:migrations
|
7
|
+
|
8
|
+
|
9
|
+
application_css:
|
10
|
+
|
11
|
+
@import "bootstrap-sprockets";
|
12
|
+
@import "bootstrap";
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
5min:
|
17
|
+
cron: "*/5 * * * *"
|
18
|
+
class: "ScheduleByIntervalJob"
|
19
|
+
queue: my_nagios_monitoring
|
20
|
+
args:
|
21
|
+
interval: 5
|
22
|
+
|
23
|
+
15min:
|
24
|
+
cron: "*/15 * * * *"
|
25
|
+
class: "ScheduleByIntervalJob"
|
26
|
+
queue: my_nagios_monitoring
|
27
|
+
args:
|
28
|
+
interval: 15
|
29
|
+
|
30
|
+
30min:
|
31
|
+
cron: "*/30 * * * *"
|
32
|
+
class: "ScheduleByIntervalJob"
|
33
|
+
queue: my_nagios_monitoring
|
34
|
+
args:
|
35
|
+
interval: 30
|
36
|
+
|
37
|
+
|
38
|
+
sidekiq -q my_nagios_monitoring
|
data/Rakefile
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'MyNagios'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
load 'rails/tasks/statistics.rake'
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Bundler::GemHelper.install_tasks
|
26
|
+
|
27
|
+
require 'rake/testtask'
|
28
|
+
|
29
|
+
Rake::TestTask.new(:test) do |t|
|
30
|
+
t.libs << 'lib'
|
31
|
+
t.libs << 'test'
|
32
|
+
t.pattern = 'test/**/*_test.rb'
|
33
|
+
t.verbose = false
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
task default: :test
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require_tree .
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
16
|
+
|
17
|
+
@import "bootstrap-sprockets";
|
18
|
+
@import "bootstrap";
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require_dependency "my_nagios/application_controller"
|
2
|
+
|
3
|
+
module MyNagios
|
4
|
+
class ChecksController < ApplicationController
|
5
|
+
def new
|
6
|
+
@check = Check.new
|
7
|
+
end
|
8
|
+
|
9
|
+
def create
|
10
|
+
@check = Check.create(params_check)
|
11
|
+
redirect_to root_path
|
12
|
+
end
|
13
|
+
|
14
|
+
def run_now
|
15
|
+
@check = Check.find(params[:id])
|
16
|
+
return unless @check
|
17
|
+
|
18
|
+
@check.run!
|
19
|
+
|
20
|
+
respond_to do |format|
|
21
|
+
format.js { render layout: false }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
def params_check
|
28
|
+
params.require(:check).permit(:host, :user, :pem_key, :description, :interval, :command)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require_dependency "my_nagios/application_controller"
|
2
|
+
|
3
|
+
module MyNagios
|
4
|
+
class WelcomeController < ApplicationController
|
5
|
+
|
6
|
+
def index
|
7
|
+
@group = Group.all.includes(:checks)
|
8
|
+
@criticals = Check.where(status: Check.statuses[:critical])
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module MyNagios
|
2
|
+
module ChecksHelper
|
3
|
+
|
4
|
+
def human_time(time)
|
5
|
+
return '-' unless time
|
6
|
+
"#{((Time.now - time) / 60).to_i} minutes ago"
|
7
|
+
end
|
8
|
+
|
9
|
+
def status_to_label(status)
|
10
|
+
return 'danger' if status.eql?('critical')
|
11
|
+
|
12
|
+
status
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class MonitoringJob
|
2
|
+
include Sidekiq::Worker
|
3
|
+
|
4
|
+
sidekiq_options queue: 'my_nagios_monitoring'
|
5
|
+
sidekiq_options retry: false
|
6
|
+
|
7
|
+
def perform(checks, config = nil)
|
8
|
+
if config
|
9
|
+
MyNagios::Check.multiple_run!(checks, config)
|
10
|
+
else
|
11
|
+
MyNagios::Check.run!(checks)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class ScheduleByIntervalJob
|
2
|
+
include Sidekiq::Worker
|
3
|
+
|
4
|
+
sidekiq_options queue: 'my_nagios_monitoring'
|
5
|
+
|
6
|
+
def perform(options, one_by_one = false)
|
7
|
+
|
8
|
+
# Run each Check separately (new ssh connection for each check even common host)
|
9
|
+
if one_by_one
|
10
|
+
MyNagios::Check.where(interval: options['interval']).each do |check|
|
11
|
+
MonitoringJob.perform_async(check)
|
12
|
+
end
|
13
|
+
|
14
|
+
return
|
15
|
+
end
|
16
|
+
|
17
|
+
# Optimized variant, group checks, run all necessary checks with one ssh connection
|
18
|
+
MyNagios::Check.where(interval: options['interval']).group_by{|check| { host: check.host, user: check.user, pem_key: check.pem_key } }.each do |config, checks|
|
19
|
+
MonitoringJob.perform_async(checks.map(&:id), config)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module MyNagios
|
2
|
+
class Check < ActiveRecord::Base
|
3
|
+
belongs_to :group
|
4
|
+
|
5
|
+
enum status: [ :info, :success, :critical ]
|
6
|
+
enum state: [ :completed, :running ]
|
7
|
+
|
8
|
+
def run!
|
9
|
+
begin
|
10
|
+
self.update(state: :running)
|
11
|
+
|
12
|
+
Net::SSH.start( self.host, self.user, config: true, keys: [self.pem_key] ) do| ssh |
|
13
|
+
result = ssh.exec! self.command
|
14
|
+
self.update(status: Check.determinate_status_by_response(result), latest_state: result, latest_updated_at: Time.now)
|
15
|
+
end
|
16
|
+
rescue => e
|
17
|
+
self.update(status: :critical, latest_state: e, latest_updated_at: Time.now)
|
18
|
+
ensure
|
19
|
+
self.update(state: :completed)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.multiple_run!(check_ids, config)
|
24
|
+
check_list = MyNagios::Check.where(id: check_ids)
|
25
|
+
|
26
|
+
begin
|
27
|
+
check_list.update_all(state: :running)
|
28
|
+
|
29
|
+
Net::SSH.start( config['host'], config['user'], config: true, keys: [config['pem_key']] ) do |ssh|
|
30
|
+
check_list.each do |check|
|
31
|
+
result = ssh.exec! check.command
|
32
|
+
check.update(status: Check.determinate_status_by_response(result), latest_state: result, latest_updated_at: Time.now)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
rescue => e
|
37
|
+
check_list.update_all(status: :critical, latest_state: e, latest_updated_at: Time.now)
|
38
|
+
ensure
|
39
|
+
check_list.update_all(state: :completed)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.determinate_status_by_response(response)
|
44
|
+
:info if response.nil?
|
45
|
+
:critical if response.scan('CRITICAL').blank?
|
46
|
+
:success
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
- run_now ||= false
|
2
|
+
- show_group ||= false
|
3
|
+
|
4
|
+
%tr{ id: dom_id(check) }
|
5
|
+
- if show_group
|
6
|
+
%td
|
7
|
+
%strong=check.group.name
|
8
|
+
- else
|
9
|
+
%td=check.command
|
10
|
+
|
11
|
+
%td
|
12
|
+
%span.label{ class: "label-#{status_to_label(check.status)}"}= check.status
|
13
|
+
=check.latest_state
|
14
|
+
|
15
|
+
- if show_group
|
16
|
+
%strong=check.command
|
17
|
+
|
18
|
+
%td=human_time(check.latest_updated_at)
|
19
|
+
|
20
|
+
- if run_now
|
21
|
+
%td
|
22
|
+
=link_to 'run now', run_now_check_path(check), class: 'check_now', method: :post, remote: true
|
23
|
+
=image_tag 'my_nagios/chasing_arrows.gif', class: 'spinner'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Add new check
|
2
|
+
|
3
|
+
=form_for @check do |f|
|
4
|
+
=f.label :group
|
5
|
+
=f.select :group, options_for_select( Group.all.map{|g| [g.name, g.id]} )
|
6
|
+
%br
|
7
|
+
=f.label :host
|
8
|
+
=f.text_field :host
|
9
|
+
%br
|
10
|
+
=f.label :user
|
11
|
+
=f.text_field :user
|
12
|
+
%br
|
13
|
+
=f.label :pem_key
|
14
|
+
=f.text_field :pem_key
|
15
|
+
%br
|
16
|
+
=f.label :description
|
17
|
+
=f.text_field :description
|
18
|
+
%br
|
19
|
+
=f.label :interval
|
20
|
+
=f.text_field :interval
|
21
|
+
%br
|
22
|
+
=f.label :command
|
23
|
+
=f.text_field :command
|
24
|
+
%br
|
25
|
+
|
26
|
+
=f.submit
|
@@ -0,0 +1,12 @@
|
|
1
|
+
tr = '<%= dom_id(@check) %>'
|
2
|
+
$('#' + tr).replaceWith('<%= j render(partial: '/my_nagios/checks/check_row', locals: { check: @check, run_now: true }) %>')
|
3
|
+
|
4
|
+
tr = '<%= dom_id(@check) %>'
|
5
|
+
$('#' + tr).find('img.spinner').hide()
|
6
|
+
|
7
|
+
$('#' + tr).find('a.check_now').click (event) ->
|
8
|
+
onclick_check_now(event)
|
9
|
+
|
10
|
+
onclick_check_now = (event) ->
|
11
|
+
$(event.target).closest('tr').addClass('updating')
|
12
|
+
$(event.target).closest('tr').find('img.spinner').show()
|
@@ -0,0 +1,28 @@
|
|
1
|
+
=link_to 'Add new check', new_check_path
|
2
|
+
|
3
|
+
%h3 Critical errors:
|
4
|
+
- if @criticals.blank?
|
5
|
+
%p No criticals
|
6
|
+
- else
|
7
|
+
%table.table
|
8
|
+
%colgroup
|
9
|
+
%col{ width: '10%'}
|
10
|
+
%col{ width: '80%'}
|
11
|
+
%col{ width: '5%'}
|
12
|
+
%col{ width: '5%'}
|
13
|
+
- @criticals.each do |check|
|
14
|
+
= render partial: '/my_nagios/checks/check_row', locals: { check: check, show_group: true }
|
15
|
+
|
16
|
+
#checks{ data: :no_turbolink }
|
17
|
+
- @group.each do |group|
|
18
|
+
|
19
|
+
%h3=group.name
|
20
|
+
|
21
|
+
%table.table
|
22
|
+
%colgroup
|
23
|
+
%col{ width: '10%'}
|
24
|
+
%col{ width: '80%'}
|
25
|
+
%col{ width: '5%'}
|
26
|
+
%col{ width: '5%'}
|
27
|
+
- group.checks.each do |check|
|
28
|
+
= render partial: '/my_nagios/checks/check_row', locals: { check: check, run_now: true }
|
data/config/routes.rb
ADDED
data/config/schedule.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
5min:
|
2
|
+
cron: "*/5 * * * *"
|
3
|
+
class: "ScheduleByIntervalJob"
|
4
|
+
queue: my_nagios_monitoring
|
5
|
+
args:
|
6
|
+
interval: 5
|
7
|
+
|
8
|
+
15min:
|
9
|
+
cron: "*/15 * * * *"
|
10
|
+
class: "ScheduleByIntervalJob"
|
11
|
+
queue: my_nagios_monitoring
|
12
|
+
args:
|
13
|
+
interval: 15
|
14
|
+
|
15
|
+
30min:
|
16
|
+
cron: "*/30 * * * *"
|
17
|
+
class: "ScheduleByIntervalJob"
|
18
|
+
queue: my_nagios_monitoring
|
19
|
+
args:
|
20
|
+
interval: 30
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class CreateMyNagiosChecks < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :my_nagios_checks do |t|
|
4
|
+
t.integer :group_id
|
5
|
+
t.string :host
|
6
|
+
t.string :user
|
7
|
+
t.string :pem_key
|
8
|
+
|
9
|
+
t.string :description
|
10
|
+
t.integer :interval
|
11
|
+
t.text :command
|
12
|
+
|
13
|
+
t.text :latest_state
|
14
|
+
|
15
|
+
t.integer :status, default: 0
|
16
|
+
t.integer :state, default: 0
|
17
|
+
|
18
|
+
t.datetime :latest_updated_at
|
19
|
+
|
20
|
+
t.boolean :enabled, default: true
|
21
|
+
|
22
|
+
t.timestamps null: false
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/my_nagios.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|