Sha256: 2889629fa7993ce83eab23f7a3e217ba83b32cfc1191d3fa18cc0e4c86e832aa
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
class Bukin::Bukfile NAME = 'Bukfile' attr_accessor :server_info, :plugins_info def initialize @plugins_info = [] end def server(name, version = 'latest-rb') unless @server_info @server_info = { name: name, version: version } else abort("Error: There is more than one server declared in your #{INSTALL_FILE}") end end def plugin(name, version = 'latest') @plugins_info << { name: name, version: version } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bukin-0.1.0 | lib/bukin/bukfile.rb |