Sha256: 3646a9e30bc83a2f7a5dcc6aadd33610fa8916af5bcf45875481bb1abbdfac6b
Contents?: true
Size: 1012 Bytes
Versions: 2
Compression:
Stored size: 1012 Bytes
Contents
class EncbsConfig attr_reader :paths, :bucket, :colorize, :compression, :hostname, :increment, :key, :secret, :size, :token, :timeout, :verbose def initialize @paths = "" end def load(path) [:bucket, :colorize, :compression, :hostname, :increment, :key, :secret, :size, :token, :timeout, :verbose].each {|attr| eval "@#{attr} = nil"} @paths = "" instance_eval "#{open(path).read}" end def use_hostname attr @hostname = attr end def add(attr) @paths += " #{attr}" end def colorize! @colorize = true end def public_key attr @token = attr end def increment! @increment = true end def use_compression attr @compression = attr end def aws_key attr @key = attr end def aws_secret attr @secret = attr end def aws_bucket attr @bucket = attr end def key_size attr @size = attr end def verbose! @verbose = true end def set_timeout attr @timeout = attr end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
encbs-0.2.1.alpha | lib/encbsconfig.rb |
encbs-0.2.0.alpha | lib/encbsconfig.rb |