Skip to content

Instantly share code, notes, and snippets.

@KAllan357
Created May 24, 2013 22:17
Show Gist options
  • Save KAllan357/5646868 to your computer and use it in GitHub Desktop.
Save KAllan357/5646868 to your computer and use it in GitHub Desktop.
chef:recipe > remote_file "maven.tar.gz" do
chef:recipe > source "http://apache.osuosl.org/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz"
chef:recipe ?> checksum "adsjflasdjfljladfj"
chef:recipe ?> action :create
chef:recipe ?> end
=> <remote_file[maven.tar.gz] @name: "maven.tar.gz" @noop: nil @before: nil @params: {} @provider: Chef::Provider::RemoteFile @allowed_actions: [:nothing, :create, :delete, :touch, :create_if_missing] @action: [:create] @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):1:in `irb_binding'" @elapsed_time: 0 @resource_name: :remote_file @path: "maven.tar.gz" @backup: 5 @diff: nil @source: "http://apache.osuosl.org/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz" @cookbook: nil @cookbook_name: nil @recipe_name: nil @checksum: "adsjflasdjfljladfj">
chef:recipe > run_chef
[2013-05-24T22:16:20+00:00] INFO: Processing remote_file[maven.tar.gz] action create ((irb#1) line 1)
[2013-05-24T22:16:20+00:00] DEBUG: remote_file[maven.tar.gz] checking for changes
[2013-05-24T22:16:20+00:00] DEBUG: Sending HTTP Request via GET to apache.osuosl.org:80/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
[2013-05-24T22:16:20+00:00] DEBUG: Streaming download from http://apache.osuosl.org/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz to tempfile /tmp/chef-rest20130524-21620-71wo8v
[2013-05-24T22:16:23+00:00] DEBUG: remote_file[maven.tar.gz] checking for file existence of maven.tar.gz
[2013-05-24T22:16:23+00:00] DEBUG: remote_file[maven.tar.gz] creating maven.tar.gz
Binary files /tmp/chef-tempfile20130524-21620-1f05i42 and /tmp/chef-rest20130524-21620-71wo8v differ
[2013-05-24T22:16:23+00:00] INFO: remote_file[maven.tar.gz] updated
=> true
chef:recipe > run_chef
[2013-05-24T22:16:32+00:00] INFO: Processing remote_file[maven.tar.gz] action create ((irb#1) line 1)
[2013-05-24T22:16:32+00:00] DEBUG: remote_file[maven.tar.gz] checking for changes
[2013-05-24T22:16:32+00:00] DEBUG: Sending HTTP Request via GET to apache.osuosl.org:80/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
[2013-05-24T22:16:32+00:00] DEBUG: Streaming download from http://apache.osuosl.org/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz to tempfile /tmp/chef-rest20130524-21620-kqpdzi
[2013-05-24T22:16:35+00:00] DEBUG: remote_file[maven.tar.gz] checking for file existence of maven.tar.gz
[2013-05-24T22:16:35+00:00] DEBUG: remote_file[maven.tar.gz] file exists at maven.tar.gz
[2013-05-24T22:16:36+00:00] DEBUG: remote_file[maven.tar.gz] target checksum: d98d766be9254222920c1d541efd466ae6502b82a39166c90d65ffd7ea357dd9
[2013-05-24T22:16:36+00:00] DEBUG: remote_file[maven.tar.gz] source checksum: d98d766be9254222920c1d541efd466ae6502b82a39166c90d65ffd7ea357dd9
[2013-05-24T22:16:36+00:00] DEBUG: remote_file[maven.tar.gz] target and source checksums are the same - not updating
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment