Sha256: 7b44f398f1e9cc0e4189f8a927710059dc961bdae76c48dba56e1db7f5c41dab

Contents?: true

Size: 400 Bytes

Versions: 13

Compression:

Stored size: 400 Bytes

Contents

module Commands
  module Init

    class FileDefinition
      attr_accessor :path, :content, :local_path

      # Options should indicate :content or :local_path, but not both
      def initialize(options)
        @path = options[:path]
        @content = options[:content] if options.key?(:content)
        @local_path = options[:local_path] if options.key?(:local_path)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
p4util-0.4.3 ./lib/commands/init/file_definition.rb
p4util-0.4.2 ./lib/commands/init/file_definition.rb
p4util-0.4.1 ./lib/commands/init/file_definition.rb
p4util-0.4 ./lib/commands/init/file_definition.rb
p4util-0.3.1 ./lib/commands/init/file_definition.rb
p4util-0.3.0 ./lib/commands/init/file_definition.rb
p4util-0.2 ./lib/commands/init/file_definition.rb
p4util-0.1.6 ./lib/commands/init/file_definition.rb
p4util-0.1.5 ./lib/commands/init/file_definition.rb
p4util-0.1.4 ./lib/commands/init/file_definition.rb
p4util-0.1.3 ./lib/commands/init/file_definition.rb
p4util-0.1.1 ./lib/commands/init/file_definition.rb
p4util-0.1.0 ./lib/commands/init/file_definition.rb