This file contains 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
#!/usr/bin/ruby | |
n = 0; | |
puts "Tastati numarul de elemente introduse in vector ( > 5 ): " | |
loop do | |
print "n = " | |
n = gets.chomp.to_i | |
if n < 5 | |
puts "Introduceti un numar > 5!" | |
else |
This file contains 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
vagrant@metacpan-dev:~/metacpan-api$ METACPAN_ES_TEST_PORT=9200 ./bin/prove | |
t/00_setup.t ..... | |
ok 1 - var/tmp exists for testing | |
1..1 | |
ok | |
t/fakecpan.t ..... | |
ok 1 - got ElasticSearch object | |
# \ { | |
# active_primary_shards 6, | |
# active_shards 6, |
This file contains 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
vagrant@metacpan-dev:~/metacpan-api$ curl -XGET 'http://localhost:9200' | |
{ | |
"status" : 503, | |
"name" : "metacpan-dev-es-01", | |
"cluster_name" : "bm", | |
"version" : { | |
"number" : "1.4.4", | |
"build_hash" : "c88f77ffc81301dfa9dfd81ca2232f09588bd512", | |
"build_timestamp" : "2015-02-19T13:05:36Z", | |
"build_snapshot" : false, |
This file contains 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
vagrant@metacpan-dev:~/metacpan-api$ ./bin/prove t | |
t/00_setup.t ..... | |
ok 1 - var/tmp exists for testing | |
1..1 | |
ok | |
t/fakecpan.t ..... | |
ok 1 - got ElasticSearch object | |
[NoNodes] ** No nodes are available: [http://127.0.0.1:9900], called from sub Search::Elasticsearch::Transport::try {...} at /home/vagrant/carton/metacpan-api/lib/perl5/Try/Tiny.pm line 81.# Tests were run but no plan was declared and done_testing() was not seen. | |
# Looks like your test exited with 111 just after 1. | |
Dubious, test returned 111 (wstat 28416, 0x6f00) |
This file contains 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
$ sudo vagrant provision | |
==> default: Running provisioner: shell... | |
default: Running: /HOME/gnome/metacpan/metacpan-developer/vagrant-shell20150324-24775-1twsk5w.sh | |
==> default: stdin: is not a tty | |
==> default: # /vagrant/provision/before/dir_perms.sh | |
==> default: # /vagrant/provision/before/hostname.sh | |
==> default: # /vagrant/provision/before/resolv_conf.sh | |
==> default: Assuming node metacpan-dev | |
==> default: Supply a node arg to override | |
==> default: parser=future enabled, carry on... |
This file contains 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
$git remote -v | |
origin git@github.com:CPAN-API/cpan-api.git (fetch) | |
origin git@github.com:CPAN-API/cpan-api.git (push) | |
This is to see that I connect with ssh and also I can push to my other repositories without requiring a password. | |
$ssh -vT git@github.com | |
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: /etc/ssh/ssh_config line 19: Applying options for * | |
debug1: Connecting to github.com [192.30.252.131] port 22. |
This file contains 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
[root@lw-mc-03 /home/metacpan/metacpan-api]# sudo -u metacpan sh /home/metacpan/bin/metacpan-api-carton-exec /home/metacpan/metacpan-api/bin/metacpan release $MINICPAN/authors/id/A/AA/AADLER | |
2015/03/03 15:06:12 I release: Looking for archives in /home/metacpan/CPAN/authors/id/A/AA/AADLER | |
2015/03/03 15:06:12 I release: 14 archives found | |
2015/03/03 15:06:15 I release: Processing /home/metacpan/CPAN/authors/id/A/AA/AADLER/Inline-Octave-0.10.tar.gz | |
2015/03/03 15:06:15 I release: Processing /home/metacpan/CPAN/authors/id/A/AA/AADLER/Inline-Octave-0.14.tar.gz | |
(in cleanup) [ERROR] ** ElasticSearch::Error::NoServers at /home/metacpan/carton/metacpan-api/lib/perl5/ElasticSearch/Transport.pm line 268 : | |
Could not retrieve a list of active servers: | |
[ERROR] ** ElasticSearch::Error::Connection at /home/metacpan/carton/metacpan-api/lib/perl5/ElasticSearch/Transport/HTTPTiny.pm line 75 : | |
Could not connect to '127.0.0.1:9200': IO::Socket::INET: connect: Connection refused | |
(599) |
This file contains 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
andreea@bm-mc-03:/home/metacpan/metacpan-api$ sudo -u metacpan sh /home/metacpan/bin/metacpan-api-carton-exec /home/metacpan/metacpan-api/bin/metacpan release http://cpan.metacpan.org/authors/id/C/CJ/CJM/Pod-Loom-0.07.tar.gz --level debug | |
2015/01/30 17:06:39 D release: Connected to "127.0.0.1:9200" | |
2015/01/30 17:06:39 I release: Downloading http://cpan.metacpan.org/authors/id/C/CJ/CJM/Pod-Loom-0.07.tar.gz | |
2015/01/30 17:06:41 D release: parsing /home/metacpan/CPAN/modules/06perms.txt | |
2015/01/30 17:06:42 D release: parsing /home/metacpan/CPAN/modules/02packages.details.txt.gz | |
2015/01/30 17:06:43 I release: Processing /home/metacpan/metacpan-api/bin/../var/tmp/http/authors/id/C/CJ/CJM/Pod-Loom-0.07.tar.gz | |
2015/01/30 17:06:43 D release: Extracting archive to filesystem | |
2015/01/30 17:06:43 D release: Gathering dependencies | |
2015/01/30 17:06:43 D release: Found 15 dependencies | |
2015/01/30 17:06:43 D release: Indexing 27 files |
This file contains 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
2015/01/09 12:04:07 I release: Processing /home/metacpan/CPAN/authors/id/A/AN/ANDK/Symdump-1.20.tar.gz | |
No handler available for type 'application/x-compress' at /home/metacpan/carton/metacpan-api/lib/perl5/Archive/Any.pm line 52. | |
2015/01/09 12:04:07 F release: Can't call method "is_impolite" on an undefined value | |
at MetaCPAN::Script::Release::import_tarball(/home/metacpan/metacpan-api/bin/../lib/MetaCPAN/Script/Release.pm:208) | |
at MetaCPAN::Script::Release::try {...} (/home/metacpan/metacpan-api/bin/../lib/MetaCPAN/Script/Release.pm:180) | |
at <eval>(/home/metacpan/carton/metacpan-api/lib/perl5/Try/Tiny.pm:81) | |
at Try::Tiny::try(/home/metacpan/carton/metacpan-api/lib/perl5/Try/Tiny.pm:72) | |
at MetaCPAN::Script::Release::run(/home/metacpan/metacpan-api/bin/../lib/MetaCPAN/Script/Release.pm:183) | |
at Class::MOP::Method::Wrapped::__ANON__(/home/metacpan/carton/metacpan-api/lib/perl5/x86_64-linux/Class/MOP/Method/Wrapped.pm:50) | |
at MetaCPAN::Script::Release::run(/home/metacpan/carton/metacpan-api/lib/perl5/x86_64-li |
This file contains 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
vagrant@metacpan-dev:~/metacpan-api$ ./bin/run bin/metacpan release $MINICPAN/authors/id/ | |
2014/12/18 13:49:04 I release: Looking for tarballs in /home/vagrant/CPAN/authors/id/ | |
2014/12/18 13:49:04 I release: 5343 tarballs found | |
2014/12/18 13:49:07 I release: Processing /home/vagrant/CPAN/authors/id/A/AM/AMOSS/SGI-GL-0.2.tar.gz | |
2014/12/18 13:49:07 I release: Processing /home/vagrant/CPAN/authors/id/A/AM/AMOSS/SGI-FM-0.1.tar.gz | |
2014/12/18 13:49:08 I release: Processing /home/vagrant/CPAN/authors/id/A/AM/AMOSS/SGI-SysCalls-0.1.tar.gz | |
2014/12/18 13:49:08 I release: Processing /home/vagrant/CPAN/authors/id/B/BE/BENLI/DBD-QBase-0.03.tgz | |
2014/12/18 13:49:09 I release: Processing /home/vagrant/CPAN/authors/id/B/BJ/BJEPS/iodbc-wwwtools-0.20b.zip | |
2014/12/18 13:49:09 E release: /home/vagrant/CPAN/authors/id/B/BJ/BJEPS/iodbc-wwwtools-0.20b.zip is being impolite | |
2014/12/18 13:49:09 I release: Processing /home/vagrant/CPAN/authors/id/A/AL/ALSCH/Tk-SelFile-0.02.tar.gz |
NewerOlder