class Commands::Init::FileDefinition

Attributes

content[RW]
local_path[RW]
path[RW]

Public Class Methods

new(options) click to toggle source

Options should indicate :content or :local_path, but not both

# File lib/commands/init/file_definition.rb, line 9
def initialize(options)
  @path = options[:path]
  @content = options[:content] if options.key?(:content)
  @local_path = options[:local_path] if options.key?(:local_path)
end