-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5afadb
commit e616f3c
Showing
50 changed files
with
157 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in hooky.gemspec | ||
# Specify your gem's dependencies in hookit.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Hooky | ||
# Hookit | ||
|
||
Hooky is the framework to provide hooky scripts with re-usable components and resources via an elegant dsl | ||
Hookit is the framework to provide hookit scripts with re-usable components and resources via an elegant dsl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
require "bundler/gem_tasks" | ||
|
||
desc "Create tag v#{Hooky::VERSION}" | ||
desc "Create tag v#{Hookit::VERSION}" | ||
task :tag do | ||
|
||
puts "tagging version v#{Hooky::VERSION}" | ||
`git tag -a v#{Hooky::VERSION} -m "Version #{Hooky::VERSION}"` | ||
puts "tagging version v#{Hookit::VERSION}" | ||
`git tag -a v#{Hookit::VERSION} -m "Version #{Hookit::VERSION}"` | ||
`git push origin --tags` | ||
|
||
end | ||
|
||
desc "Create tag v#{Hooky::VERSION} and build and push hooky-#{Hooky::VERSION}.gem to Gemfury" | ||
task :fury => [:tag, :build] do | ||
|
||
puts `fury push pkg/hooky-#{Hooky::VERSION}.gem` | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'hooky/version' | ||
require 'hookit/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "hooky" | ||
spec.version = Hooky::VERSION | ||
spec.name = "hookit" | ||
spec.version = Hookit::VERSION | ||
spec.authors = ["Tyler Flint", "Greg Linton"] | ||
spec.email = ["[email protected]"] | ||
spec.summary = %q{Hooky is a framework to provide hooky scripts with re-usable components and resources via an elegant dsl.} | ||
spec.description = %q{The core framework to provide hooky scripts with re-usable components.} | ||
spec.summary = %q{Hookit is a framework to provide hookit scripts with re-usable components and resources via an elegant dsl.} | ||
spec.description = %q{The core framework to provide hookit scripts with re-usable components.} | ||
spec.homepage = "" | ||
spec.license = "MIT" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
require 'hookit/converginator' | ||
require 'hookit/db' | ||
require 'hookit/error' | ||
require 'hookit/exit' | ||
require 'hookit/helper' | ||
require 'hookit/hook' | ||
require 'hookit/logger' | ||
require 'hookit/logvac' | ||
require 'hookit/platform' | ||
require 'hookit/registry' | ||
require 'hookit/resource' | ||
require "hookit/version" | ||
|
||
module Hookit | ||
extend self | ||
|
||
def resources | ||
@resources ||= Hookit::Registry.new | ||
end | ||
|
||
def platforms | ||
@platforms ||= Hookit::Registry.new | ||
end | ||
end | ||
|
||
require 'hookit/resources' | ||
require 'hookit/platforms' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
class Converginator | ||
|
||
def initialize(map, list) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Exit | ||
SUCCESS = 0 | ||
ERROR = 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'hookit/helper/nfs' | ||
require 'hookit/helper/shell' | ||
require 'hookit/helper/xml' | ||
require 'hookit/helper/cron' | ||
|
||
module Hookit | ||
module Helper | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Helper | ||
module Cron | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Helper | ||
module NFS | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Helper | ||
module Shell | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Helper | ||
module XML | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require 'faraday' | ||
|
||
module Hooky | ||
module Hookit | ||
class Logvac | ||
|
||
def initialize(opts) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'hookit/platform/base' | ||
require 'hookit/platform/smartos' | ||
require 'hookit/platform/ubuntu' | ||
|
||
module Hookit | ||
module Platform | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Platform | ||
class Base | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Platform | ||
class Smartos < Base | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Platform | ||
class Ubuntu < Base | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Hookit.platforms.register(:smartos) { Hookit::Platform::Smartos } | ||
Hookit.platforms.register(:ubuntu) { Hookit::Platform::Ubuntu } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'hookit/resource/base' | ||
require 'hookit/resource/directory' | ||
require 'hookit/resource/execute' | ||
require 'hookit/resource/file' | ||
require 'hookit/resource/hook_file' | ||
require 'hookit/resource/link' | ||
require 'hookit/resource/logrotate' | ||
require 'hookit/resource/mount' | ||
require 'hookit/resource/package' | ||
require 'hookit/resource/rsync' | ||
require 'hookit/resource/socket' | ||
require 'hookit/resource/scp' | ||
require 'hookit/resource/service' | ||
require 'hookit/resource/template' | ||
require 'hookit/resource/zfs' | ||
|
||
module Hookit | ||
module Resource | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Resource | ||
class Cron < Execute | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Resource | ||
class File < Base | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
lib/hooky/resource/hook_file.rb → lib/hookit/resource/hook_file.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Hooky | ||
module Hookit | ||
module Resource | ||
class HookFile < Base | ||
|
||
|
Oops, something went wrong.