Skip to content

Commit

Permalink
generated skeletal project.
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenShift System User committed Mar 14, 2016
1 parent f64d18b commit a272cef
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= redmine_remote_git

Description goes here
13 changes: 13 additions & 0 deletions app/controllers/git_repositories_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class GitRepositoriesController < ApplicationController
unloadable


def index
end

def create
end

def delete
end
end
2 changes: 2 additions & 0 deletions app/helpers/git_repositories_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module GitRepositoriesHelper
end
3 changes: 3 additions & 0 deletions app/models/git_repository.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class GitRepository < ActiveRecord::Base
unloadable
end
1 change: 1 addition & 0 deletions app/views/git_repositories/create.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h2>GitRepositoriesController#create</h2>
1 change: 1 addition & 0 deletions app/views/git_repositories/delete.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h2>GitRepositoriesController#delete</h2>
1 change: 1 addition & 0 deletions app/views/git_repositories/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h2>GitRepositoriesController#index</h2>
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# English strings go here for Rails i18n
en:
# my_label: "My label"
4 changes: 4 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Plugin's routes
# See: http://guides.rubyonrails.org/routing.html

get 'gitrepos', :to => 'git_repositories#index'
8 changes: 8 additions & 0 deletions db/migrate/001_create_git_repositories.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class CreateGitRepositories < ActiveRecord::Migration
def change
create_table :git_repositories do |t|
t.string :remote_origin_url
t.string :local_clone_path
end
end
end
8 changes: 8 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Redmine::Plugin.register :redmine_remote_git do
name 'Redmine Remote Git plugin'
author 'Author name'
description 'This is a plugin for Redmine'
version '0.0.1'
url 'http://example.com/path/to/plugin'
author_url 'http://example.com/about'
end
11 changes: 11 additions & 0 deletions test/functional/git_repositories_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require File.expand_path('../../test_helper', __FILE__)

class GitRepositoriesControllerTest < ActionController::TestCase
# Replace this with your real tests.
def test_truth
get :index

assert_response :success
assert_template 'index'
end
end
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Load the Redmine helper
require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')
9 changes: 9 additions & 0 deletions test/unit/git_repository_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require File.expand_path('../../test_helper', __FILE__)

class GitRepositoryTest < ActiveSupport::TestCase

# Replace this with your real tests.
def test_truth
assert true
end
end

0 comments on commit a272cef

Please sign in to comment.