Class: SiteFuel::External::SVN

Inherits:
AbstractExternalProgram show all
Defined in:
lib/sitefuel/external/SVN.rb

Constant Summary

Constant Summary

Constants inherited from AbstractExternalProgram

AbstractExternalProgram::VERSION_SEPARATOR

Instance Attribute Summary

Attributes inherited from AbstractExternalProgram

#options

Class Method Summary (collapse)

Methods inherited from AbstractExternalProgram

#add_option, allowed_option_name?, #apply_value, #build_command_line, call_option, capture_output, capture_stderr, compatible_version?, compatible_version_number?, create_tmp_directory, #ensure_option_validity, ensure_valid_option, excluded_option_names, execute, #execute, extract_program_version, #has_default?, #initialize, option, option?, option_default, option_template, #option_template, option_version, options, organize_options, output_handling, program_binary, program_found?, program_version, random_string, #requires_value?, #takes_value?, test_version_number, #valid_option?, verify_compatible_version, verify_program_exists, version_older?

Methods included from Logging

#debug, #error, #fatal, #info, #logger=, #warn

Constructor Details

This class inherits a constructor from SiteFuel::External::AbstractExternalProgram

Class Method Details

+ (Object) compatible_versions

again, earlier versions would probably work



22
23
24
# File 'lib/sitefuel/external/SVN.rb', line 22

def self.compatible_versions
  '> 1.2'
end

+ (Object) export(source, output = nil, revision = 'HEAD')



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/sitefuel/external/SVN.rb', line 33

def self.export(source, output=nil, revision='HEAD')
  use_force = false

  if output == nil
    output = create_tmp_directory('svn')
    use_force = true
  end

  args = [:export,
          :revision, revision,
          :source, source,
          :output, output]

  if use_force
    args << :force
  end

  execute(*args)

  output
end

+ (Object) program_name



17
18
19
# File 'lib/sitefuel/external/SVN.rb', line 17

def self.program_name
  'svn'
end