Skip to content

Commit 852e4d7

Browse files
committed
Merge pull request #60 from cmfcmf/vagrant
Add vagrant support.
2 parents 78a8675 + ad97532 commit 852e4d7

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/vendor
2+
.vagrant/
3+
.idea/

Cmfcmf/OpenWeatherMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ private function buildQueryUrlParameter($query)
606606

607607
/**
608608
* Returns whether or not the last result was fetched from the cache.
609-
*
609+
*
610610
* @return bool true if last result was fetched from cache, otherwise false.
611611
*/
612612
public function wasCached()

Cmfcmf/OpenWeatherMap/Fetcher/CurlFetcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
class CurlFetcher implements FetcherInterface
2626
{
2727
/**
28-
* @var array The Curl options to use.
28+
* @var array The Curl options to use.
2929
*/
3030
private $curlOptions;
3131

3232
/**
3333
* Create a new CurlFetcher instance.
34-
*
34+
*
3535
* @param array $curlOptions The Curl options to use. See http://php.net/manual/de/function.curl-setopt.php
3636
* for a list of available options.
3737
*/

Vagrantfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure(2) do |config|
5+
config.vm.box = "ubuntu/trusty64"
6+
7+
config.vm.provision "shell", inline: <<-SHELL
8+
sudo apt-get update
9+
sudo apt-get install -y php5-cli
10+
11+
sudo curl --silent https://getcomposer.org/installer | php > /dev/null 2>&1
12+
sudo mv composer.phar /usr/local/bin/composer
13+
SHELL
14+
end

0 commit comments

Comments
 (0)