-
Indent with two spaces. This is very nearly universally accepted among Rubyists.
-
Never rescue
Exception. (See http://technomancy.us/114 for details.) Don't rescueStandardError(without conditionally re-raising it) unless you have a really good reason. Doing this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns pallet.aether | |
| "Wrapper for aether resolution | |
| See: | |
| https://docs.sonatype.org/display/AETHER/Home" | |
| (:require | |
| [clojure.java.io :as io] | |
| [clojure.contrib.logging :as logging]) | |
| (import | |
| org.apache.maven.repository.internal.MavenRepositorySystemSession |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fog' | |
| compute = Fog::Compute.new(:provider => 'VirtualBox') | |
| server = compute.servers.create(:name => 'lucid', :os => 'Ubuntu') | |
| medium = compute.mediums.create(:device_type => :hard_disk, :location => '/Users/geemus/geemus/virtualbox_poc/lucid.vmdk', :read_only => false) | |
| storage_controller = server.storage_controllers.create(:bus => :sata, :name => 'sata') | |
| storage_controller.attach(medium, 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
NewerOlder