Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Commit

Permalink
Merge 3b6d637 into 54b2a9a
Browse files Browse the repository at this point in the history
  • Loading branch information
janstenpickle committed Sep 29, 2015
2 parents 54b2a9a + 3b6d637 commit 50c4c49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/shanty/plugin.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'call_me_ruby'
require 'shenanigans/hash/to_ostruct'
require 'shanty/env'
require 'shanty/project'

Expand Down Expand Up @@ -31,11 +32,11 @@ def self.tags(*args)
end

def self.option(option, default = nil)
config[name][option] = default if config[name][option].nil?
(@options ||= {})[option] = default
end

def self.options
config[name]
(@options ||= {}).merge(config[name].to_h).to_ostruct
end

def self.projects(*globs_or_syms)
Expand Down

0 comments on commit 50c4c49

Please sign in to comment.