Method: Chef::Provider::Subversion#revision_int
- Defined in:
- lib/chef/provider/subversion.rb
#revision_int ⇒ Object Also known as: revision_slug
If the specified revision isn’t an integer (“HEAD” for example), look up the revision id by asking the server If the specified revision is an integer, trust it.
126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/chef/provider/subversion.rb', line 126 def revision_int @revision_int ||= begin if @new_resource.revision =~ /^\d+$/ @new_resource.revision else command = scm(:info, @new_resource.repository, @new_resource.svn_info_args, authentication, "-r#{@new_resource.revision}") status, svn_info, = output_of_command(command, ) handle_command_failures(status, "STDOUT: #{svn_info}\nSTDERR: #{error_message}") extract_revision_info(svn_info) end end end |